Skip to content

Instantly share code, notes, and snippets.

@kapilgarg
Created June 16, 2024 18:23
Show Gist options
  • Save kapilgarg/4519545eb7c426386697e4025f341236 to your computer and use it in GitHub Desktop.
Save kapilgarg/4519545eb7c426386697e4025f341236 to your computer and use it in GitHub Desktop.
spacy_NER_pipeline_1
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