Code Monkey home page Code Monkey logo

Comments (5)

rsirel avatar rsirel commented on July 20, 2024

How many documents do you have in your dataset? This is a symptom of having too few documents to build the Word2Vec model.

from texta.

andopaju avatar andopaju commented on July 20, 2024

It's true that the error came up while testing with one document only.
But the cause seems to be that first ES_SCROLL_SIZE rows are discarded altogether and not taken into account while training.

from texta.

andopaju avatar andopaju commented on July 20, 2024

Can't reproduce anymore, most likely false alert

from texta.

andopaju avatar andopaju commented on July 20, 2024

Nope, it is definitely a bug.
If I comment out these lines:

#response = self.es_m.scroll(scroll_id=scroll_id)
#scroll_id = response['_scroll_id']

and then put

total_hits = 0

then training is completed successfully.

first response (before while loop):
{"_scroll_id": "DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAYoFklGcnVXVE8wUlBTb0h4bnNJcnBaZlEAAAAAAAAGKxZJRnJ1V1RPMFJQU29IeG5zSXJwWmZRAAAAAAAABioWSUZydVdUTzBSUFNvSHhuc0lycFpmUQAAAAAAAAYsFklGcnVXVE8wUlBTb0h4bnNJcnBaZlEAAAAAAAAGKRZJRnJ1V1RPMFJQU29IeG5zSXJwWmZR", "_shards": {"total": 5, "skipped": 0, "successful": 5, "failed": 0}, "hits": {"total": 1, "max_score": 1.0, "hits": [{"_type": "ariseadustik", "_id": "3DrvvGgBLr6SwCRtWKxk", "_index": "ariseadustik", "_score": 1.0, "_source": {"text": "V\u00e4ljaandja: Riigikogu\nAkti liik: seadus\n...

second response - now inside while loop (notice no hits):
{"_scroll_id": "DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAYoFklGcnVXVE8wUlBTb0h4bnNJcnBaZlEAAAAAAAAGKxZJRnJ1V1RPMFJQU29IeG5zSXJwWmZRAAAAAAAABioWSUZydVdUTzBSUFNvSHhuc0lycFpmUQAAAAAAAAYsFklGcnVXVE8wUlBTb0h4bnNJcnBaZlEAAAAAAAAGKRZJRnJ1V1RPMFJQU29IeG5zSXJwWmZR", "_shards": {"total": 5, "skipped": 0, "successful": 5, "failed": 0}, "hits": {"total": 1, "max_score": 1.0, "hits": []}, "timed_out": false, "took": 1}}

Attached example datafile.
120122018002.txt

from texta.

ranetp avatar ranetp commented on July 20, 2024

This should now be fixed, but make sure that "Frequency threshold", in the parameters you choose when starting a Language Model Task, is low enough to fit your dataset

from texta.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.