Help with training a NER model that returns confidence score for each entity #9635
-
Hello Everyone, I would appreciate it if anyone can help me with the following two things:
Task Approach I added the required configuration to include tok2vec, span-cat and ner, also updated span-cat to use tok2vec listener, like suggested here #9601 (reply in thread). But when I run the debug command
So I am trying to add the
My config.cfg file looks like this:
Using Python v3.8 and spaCy v3.1.4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Sorry you're having trouble with this, you might find it helpful to look at the spancat example project for reference.
The file is just a JSON list of labels, like Are you sure you need an NER component in addition to a spancat component? In the linked issue the user just asked if it was possible to include both in the same pipeline, which it is, but typically I would expect you to only need one or the other. |
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with this, you might find it helpful to look at the spancat example project for reference.
The file is just a JSON list of labels, like
["red", "green", "blue"]
. However normally you don't need the file unless you're using a streaming corpus or something. It could possibly be an issue if your annotations aren't being picked up for some reason.Are you sure you need an NER component in addition to a spancat component? In the linked issue the user just asked if it was possible t…