Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active September 2, 2022 21: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 quantra-go-algo/2a179da3f307639f7e5b1e92b83dec25 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/2a179da3f307639f7e5b1e92b83dec25 to your computer and use it in GitHub Desktop.
# Pass the text you want to analyze to your model
doc = nlp("Jennifer is learning quantitative analysis.")
# Print the part-of-speech and the syntactic dependency relation for the tokens
for token in doc:
print(token.text, token.pos_, token.dep_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment