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})