The data is incorrect. Instead of <START someTag>
I need <START:someTag>
. I was using a space instead of a colon.
OpenNLP NameFinder training, "Found unexpected annotation"
-
02-08-2022 - |
Domanda
In training my NameFinderME, I get the following error message:
My data looks as follows:
<START someTag> some text <END>
Computing event counts... java.io.IOException: Found unexpected annotation:
In everything else Google has found me for this error message, it's always a simple error in the spacing of the training data (e.g., change <START:entity>some text<END>
to <START:entity> some text <END>
. This isn't applicable to me (it's all correctly spaced.) It's all UTF-16, and specified to be so when I set up the objects to do the training. Any ideas on what could be wrong?
Thank you,
WalrusTheCat
Soluzione
Altri suggerimenti
Also, when occurring problem like this, please be sure your and tags are surrounded by a space, so instead of Next person, <START:person>Rahul Vashishth<END>, is 61 years old.
use Next person, <START:person> Rahul Vashishth <END>, is 61 years old.