Comments (5)
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.
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.
Can't reproduce anymore, most likely false alert
from texta.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texta.