Hi @Bharath,
thank you for your question
If you know the words that you want to annotate beforehand, you could use a pattern file and the --patterns
flag in your ner.manual command.
If you don't know these words beforehand, you could write a custom recipe to add your annotated spans to the Matcher while annotating. In order to achieve this, you need to add an update()
function to your recipe. For that, you might want to checkout the following two posts by Ines:
- NER Training for Corporate Names - #16 by ines
- Prodigy Custom Model; Model in the Loop (matcher) - #2 by ines
In both update-functions, spans are added to the PatternMatcher
during the annotation process.
I hope that this helps you with your problem. Please let me know if you have any further questions.