ValueError("[E024] Could not find an optimal move to supervise the parser. #8955
-
Hello, Setup:
Then I passed the two documents as training data, and i give some other documents as development data (these do not have any influence). In this case I am only providing these two documents, but I was getting the same error with many more, and removing these documents I didn't get the error anymore. I run
and the output is the following:
These are the documents (in one spacy file): bad_docs.tar.gz Thank you for your attention! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
What does |
Beta Was this translation helpful? Give feedback.
-
It shows
But the same error is obtained also with the data that works, so I couldn't get any relevant information from it. By the way, I forgot to mention it in the post. |
Beta Was this translation helpful? Give feedback.
-
I think the config issue must be separate. I'm pretty sure the problem with the docs is one of the issues mentioned in the original error message: you have multiple entity spans that start with a non-breaking space. The NER component includes some custom behavior related to whitespace and it doesn't work with spans that start or end with whitespace. |
Beta Was this translation helpful? Give feedback.
I think the config issue must be separate.
I'm pretty sure the problem with the docs is one of the issues mentioned in the original error message: you have multiple entity spans that start with a non-breaking space. The NER component includes some custom behavior related to whitespace and it doesn't work with spans that start or end with whitespace.