Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use displacy

from spacy import displacy
nlp = spacy.load("en_core_web_sm")

txt = "coffee was good but wasn't enough"
doc = nlp(txt)

displacy.render(doc, style='dep', jupyter=True, options={'distance': 120})
 
PREVIOUS NEXT
Tagged: #displacy
ADD COMMENT
Topic
Name
9+8 =