How to add the source of custom trained ner component? #10160
-
Hi, I am trying to create an entity + sentiment analysis project. I have a custom trained NER component. I need to add the source of this custom trained NER component into my other spacy pipeline. I tried going through the documentation but don't understand what exactly should I include in the config file in the
I have trained and obtained the model_best and model_last, saved in the specified folder. Do I have to add a custom factory name to my custom NER model in the config file and add that to my second pipeline? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello,
If you renamed the NER component then you'll need to add the
For the |
Beta Was this translation helpful? Give feedback.
Hello,
If you haven't renamed the NER component in your trained model, you can source the component this way:
If you renamed the NER component then you'll need to add the
component
variable (notfactory
)For the
${paths.ner_model}
variable you have to set the path to eithermodel-best
ormodel-last
directory