Saturday, 6 October 2018

Resume Information Extraction Spacy NLP :Adding a new entity type to pre-trained NER - Sandeep Kanao

# NLP - SpaCy - Adding a new entity type to an existing pre-trained NER - Sandeep Kanao

GIT


"""Example of training an additional entity type

This script shows how to add a new entity type to an existing pre-trained NER model.

The actual training is performed by looping over the examples, and calling `nlp.entity.update()`. The `update()` method steps through the words of the input.
At each word, it makes a prediction. It then consults the annotations provided on the GoldParse instance, to see whether it was right. If it was wrong, it adjusts its weights so that the correct action will score higher next time.

After training your model, you can save it to a directory. We recommend
wrapping models as Python packages, for ease of deployment.

For more details, see the documentation:
* Training: https://spacy.io/usage/training
* NER: https://spacy.io/usage/linguistic-features#named-entities

"""

No comments:

Post a Comment