Skip to content

Instantly share code, notes, and snippets.

@Mgancita
Created February 13, 2022 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mgancita/00f918be0f8063584dd628ac81039a4b to your computer and use it in GitHub Desktop.
Save Mgancita/00f918be0f8063584dd628ac81039a4b to your computer and use it in GitHub Desktop.
import spacy
nlp = spacy.load("en_core_web_sm")
doc = nlp("Hello I'm Marco")
print("Entities:", [chunk.text for chunk in doc.ents])
# Entities: ['Marco']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment