-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spaCy CLI NER fails after several epochs: ValueError: [E024] #4830
Comments
That is indeed quite strange. Which exact command are you using to start the training? Can you share the output of the first epochs ? Just FYI: the NER algorithm is implemented in a similar fashion as the parser, both use a Transition-based system. That's why the error mentions "parser" even though you're training NER - so that is not strange by itself (though admittedly a bit confusing) |
Hi Sofie, it is a fairly straightforward way:
Where However, as you can see, I put 200 iterations and the model completed only 21 and then crashed. This is the reason I started training with the basis model the one where it stopped previously. I used both, GPU and CPU and the results remain the same. Could it be memory problems? Also, the model crashed even if I start with blank
` |
UPDATE Once I stopped using |
Ah, that is good to know, thanks ! |
So it appears this happens because of this function https:/explosion/spaCy/blob/master/spacy/gold.pyx#L480 which is called when the noise level is turned on. It basically swaps punctuation for newlines at random, and that could become a problem when the swapped text is part of an annotated entity. This definitely looks like a bug and something we should fix - but training without noise in the meantime is a good work-around. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am CLI-training a NER model, however, after 3-4 epochs, it crashes with the following error:
I've run
debug-data
, and no problems were occurred with NER model (no white spaces). Moreover, Parser is not being trained, but onlyner
. It is also a bit strange, as it crashes after several successful epochs, so the model is capable of learning from data, but then something is happening and then it crashes. Very strange. Thanks in advance.Your Environment
Info about spaCy
The text was updated successfully, but these errors were encountered: