NER Model With additional Entities and Entity Linking #11195
Replies: 2 comments 3 replies
-
It is possible, but hard to get good accuracy that way, especially when adding new entities.
I'm not entirely sure what you mean by this.
You can train NER and entity linking at the same time and it may or may not help - it depends on your data and the best way to check is to actually test it. For the problem you have here, I would suggest you first make sure your NER component for new entities is working well on its own. If there are issues with that, combining it with other components will make it harder to evaluate and troubleshoot. For using the already existing entities, for PERSON and ORG in particualr the pretrained pipeline has a lot of good training data, so I would suggest you use two separate NER components - the pretrained one and your own. You can see how to combine multiple NER components in the sample double NER project. If you want to remove entities you are not using, you can do that with a small custom component. |
Beta Was this translation helpful? Give feedback.
-
|
@polm Is it better to have 1 NER component for all custom entities What is the best approach for this task? If this is question is too broad then what factors need to be considered when deciding this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I already have a custom NER model built from scratch with 10 entities. But the number of documents is few and the accuracy is not good. So I am trying to make the accuracy a better one plus need to add additional 4 more entities. So the new model I am trying to build will have 14 entities.
From the present model, out of 10 entities, 4 entities (DATE, TIME, ORG, PERSON) are present in pre trianed models of spacy. Rest 6 are not present in pretrained models. So I went for custom model from scratch tagging all 10 entities.
My doubts are
Or is there any better approach for achieving my requirements than the above.
Beta Was this translation helpful? Give feedback.
All reactions