Training the spacy3 sm ner model for ".Net Developer" as person (Dot Problem) #7901
Replies: 2 comments
-
Sometimes statistical models just make mistakes, especially if an example is different from others. In this case you have several options: Add more training examples with the thing you want to improve on. This one is generally effective and pretty straightforward. Modify the Tokenizer. I suspect You can use this code to do that:
Use rule-based entity labelling. Since ".Net Developer" should always be labelled as a role, you can use the rule-based matching to pick it up. Add an EntityRuler after your NER component and allow it to overwrite entities and you can pick up edge cases like this. |
Beta Was this translation helpful? Give feedback.
-
Answer is best suited to me, and this is what I'm searching... Thanks @polm for giving good information, Great project |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a training data to train NER pipe with custom label as ROLE.
I have trained using that data with ROLE label.
Whereas, My trained model not able to identify ".Net Developer" which I have given in training data.
Can you suggest me how to train it.
Thanks in advance
Example:
Training Data:
("Client: Apple Inc. , Role: .Net Developer", {"entities":[(27,41,"ROLE")]})
When I give same text to predict, output is here (ent.text, ent.label_)
Output: Developer, ROLE
Expected: .Net Developer, ROLE
Beta Was this translation helpful? Give feedback.
All reactions