Combining pretrained NER and trained NER in single pipeline #8300
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Just a note since you have done this in multiple threads: please do not share screenshots of code, copy and paste the code as text instead. Screenshots of code are hard to read and don't allow us to copy/paste things to check in our own environments. If you need to call out a particular part of the code, like with your arrows, you can add a comment that says |
Beta Was this translation helpful? Give feedback.
-
As far as I can see, you need to pay attention to the tok2vec layers that your NER layers listen to. Your You need to either replace the listenier when souring it or change the tok2vec that |
Beta Was this translation helpful? Give feedback.
-
It's not quite done but you might want to take a look at the new double NER example project in explosion/projects#59, which was partly inspired by this thread. It has examples of combining two NER models using the config or code. |
Beta Was this translation helpful? Give feedback.
It's not quite done but you might want to take a look at the new double NER example project in explosion/projects#59, which was partly inspired by this thread. It has examples of combining two NER models using the config or code.