Created
June 16, 2024 18:23
-
-
Save kapilgarg/4519545eb7c426386697e4025f341236 to your computer and use it in GitHub Desktop.
spacy_NER_pipeline_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model = 'en_core_web_sm' | |
nlp = spacy.load(model) | |
if 'ner' not in nlp.pipe_names: | |
nlp.add_pipe('ner', last=True) | |
ner = nlp.get_pipe('ner') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment