Closed monk1337 closed 6 years ago
Please don't include new entity types to the existing model until and unless if you have many examples. Iy you see, each entity in the spacy model have huge number of examples. So create a new model for your new entities and spacy model for default entities which works best when you have very small set of data.
Copying over my reply from #2124:
It sounds like what you're experiencing is the "catastrophic forgetting" problem – as your model learns about the new entities, it's "forgetting" what it had previously learned.
Here are some resources and threads with more information and possible solutions:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
@honnibal I am trying to Train Spacy for custom Entity Label : My Entity is 'New_tag' and I am trying to train model with the previous model, so I want to append the training data with custom tag into existing model. I modified the default training script spacy/examples/training/train_new_entity_type.py a little my current code is
This is my code:
Now If I load the model in another file and do this test :
What i am getting is :
New_tag People New_tag talking New_tag Bitcoin New_tag Apple New_tag looking New_tag buying GPE U.K. MONEY $1 billion
But the expected result is:
New_tag People New_tag talking New_tag Bitcoin ORG Apple GPE U.K. MONEY $1 billion
how I can achieve this result and can add new entity type into existing model without replacing or modifying existing data or Entity types?
I gone through these issues but couldn't fi a d solution:
https://github.com/explosion/spaCy/issues/1752 https://github.com/explosion/spaCy/issues/1739 https://github.com/explosion/spaCy/issues/1585