October 2018
Intermediate to advanced
472 pages
10h 57m
English
Dependency parsing is a way to understand the relationships between words in a sentence. Dependency relations are a more fine-grained attribute, available to help build the model's understanding of the words through their relationships in a sentence:
doc = nlp(sentenses[2])spacy.displacy.render(doc,style='dep', options={'distance' : 140}, jupyter=True)
These relationships between words can get complicated, depending on how sentences are structured. The result of dependency-parsing a sentence is a tree data structure, with the verb as the root, as shown in the following diagram:

Read now
Unlock full access