from spacy import displacy from core.nlp import nlp doc = nlp(u"J'ai trois beau enfants qui se nomment Nahé, Ancelo et Lino") options = {'compact': True, 'bg': '#09a3d5', 'color': 'white', 'font': 'Source Sans Pro'} displacy.serve(doc, style='dep', options=options)