Last active
July 31, 2021 05:11
-
-
Save prateekjoshi565/6439d3d8996aeb490b9d816fa0226e6c to your computer and use it in GitHub Desktop.
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
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_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is 'en_core_web_sm'?