Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created September 23, 2019 05:11
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 prateekjoshi565/991ad1b1c550a799387ef617407b41f8 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/991ad1b1c550a799387ef617407b41f8 to your computer and use it in GitHub Desktop.
doc = nlp("Here is how you can keep your car and other vehicles clean.")
# print dependency tags and POS tags
for tok in doc:
print(tok.text, "-->",tok.dep_, "-->",tok.pos_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment