Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Last active July 31, 2021 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save prateekjoshi565/6439d3d8996aeb490b9d816fa0226e6c to your computer and use it in GitHub Desktop.
Save prateekjoshi565/6439d3d8996aeb490b9d816fa0226e6c to your computer and use it in GitHub Desktop.
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp("The 22-year-old recently won ATP Challenger tournament.")
for tok in doc:
print(tok.text, "...", tok.dep_)
@TheSuranaverse
Copy link

what is 'en_core_web_sm'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment