Force NER model to output only one entity #12223
lanchiang
started this conversation in
Help: Best practices
Replies: 1 comment 2 replies
-
Hey @lanchiang, can you elaborate on what exactly you're trying to achieve? If you have only entity you want to identify, it might be more practical to use rule-based matching. It would help us to know more about your use-case though before recommending next steps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have trained a NER model to find the keyword (entity) in a term that may have several words. In my use case, one and only one entity should be found. But I notice that spaCy's NER model sometimes output more than one entity, and sometimes no entities at all. I wonder if there's a way to achieve what I want with spaCy?
P.S., I have thought of modelling the problem as text classification where each keyword is a class. But the problem is the classifier won't be able to recognise classes not in the training set.
I have tried to look for similar discussions here but cannot seemingly find them.
Any help would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions