Search code examples
nlpspacydependency-parsing

How to get spaCy to use universal dependencies


Spacy's site said they use universal dependencies scheme in their annotations specifications page. But when I parse "I love you", '''you''' was made a "dobj" of "love". There's no "dobj" in the universal dependency relations doc. So I have two questions :

  1. How to get spacy to use the universal dependency relations?
  2. How to get the doc for the relations spacy uses?

enter image description here


Solution

  • Spacy's provided models don't use UD dependencies for English or German. From the docs, where you can find tables for the dependency labels (https://spacy.io/api/annotation#dependency-parsing):

    The individual labels are language-specific and depend on the training corpus.

    For most other models / languages, UD dependencies are used.