Combining Two Trained Models #8521
Replies: 1 comment 6 replies
-
We actually just released a tutorial about combining two NER models, though it's for the case where they cover different entities.
In spaCy you cannot ensemble these methods in a straightforward way. You can put one before the other so one might pick up entities the other missed, but if they're predicting the same thing that seems unlikely to work. In theory you could concat the vectors of the models for predictions or something, but spaCy won't help you do that. It's also hard to say more about it without knowing more about your models. When you say they're trained on two parts of the corpus, are those random slices, or are they chosen in some principled manner, even if the list of entities is the same? I suspect you're better off just training a single model, but it really is hard to say much without knowing anything about your data. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am a bit of a newbie to spaCy, so have been confused over a few things. I was wondering if there's a way to combine two trained NER models. Both the models are recognising the same entities, just that they are trained on two different parts of a large corpus.
The first model is trained on recognizing the entities of a large corpus, while the second one is also the same. The only difference is, they're trained on two parts of the corpus and hence, might not be very accurate.
My question - Is there a way to combine or ensemble these two models together? And can it help increasing the overall accuracy?
Beta Was this translation helpful? Give feedback.
All reactions