Skip to content
Discussion options

You must be logged in to vote

Found the answer.

from spacy.displacy import parse_deps
doc = "This is a document"
spacy_doc = nlp(doc)
print(parse_deps(spacy_doc))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nihirv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / visualizers Feature: Built-in displaCy and other visualizers
1 participant