From 82d034f976fed547affd4d065b6250617967f0f6 Mon Sep 17 00:00:00 2001 From: Luca Dorigo Date: Fri, 10 May 2019 14:23:20 +0200 Subject: [PATCH] Update glossary.py to match information found in documentation (#3704) (closes ##3679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update glossary.py to match information found in documentation I used regexes to add any dependency tag that was in the documentation but not in the glossary. Solves #3679 👍 * Adds forgotten colon --- spacy/glossary.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/spacy/glossary.py b/spacy/glossary.py index 6e393bba2..ff38e7138 100644 --- a/spacy/glossary.py +++ b/spacy/glossary.py @@ -168,6 +168,7 @@ GLOSSARY = { # Dependency Labels (English) # ClearNLP / Universal Dependencies # https://github.com/clir/clearnlp-guidelines/blob/master/md/specifications/dependency_labels.md + "acl": "clausal modifier of noun (adjectival clause)", "acomp": "adjectival complement", "advcl": "adverbial clause modifier", "advmod": "adverbial modifier", @@ -177,22 +178,32 @@ GLOSSARY = { "attr": "attribute", "aux": "auxiliary", "auxpass": "auxiliary (passive)", + "case": "case marking", "cc": "coordinating conjunction", "ccomp": "clausal complement", + "clf": "classifier", "complm": "complementizer", + "compound": "compound", "conj": "conjunct", "cop": "copula", "csubj": "clausal subject", "csubjpass": "clausal subject (passive)", + "dative": "dative", "dep": "unclassified dependent", "det": "determiner", + "discourse": "discourse element", + "dislocated": "dislocated elements", "dobj": "direct object", "expl": "expletive", + "fixed": "fixed multiword expression", + "flat": "flat multiword expression", + "goeswith": "goes with", "hmod": "modifier in hyphenation", "hyph": "hyphen", "infmod": "infinitival modifier", "intj": "interjection", "iobj": "indirect object", + "list": "list", "mark": "marker", "meta": "meta modifier", "neg": "negation modifier", @@ -201,11 +212,15 @@ GLOSSARY = { "npadvmod": "noun phrase as adverbial modifier", "nsubj": "nominal subject", "nsubjpass": "nominal subject (passive)", + "nounmod": "modifier of nominal", + "npmod": "noun phrase as adverbial modifier", "num": "number modifier", "number": "number compound modifier", + "nummod": "numeric modifier", "oprd": "object predicate", "obj": "object", "obl": "oblique nominal", + "orphan": "orphan", "parataxis": "parataxis", "partmod": "participal modifier", "pcomp": "complement of preposition", @@ -218,7 +233,10 @@ GLOSSARY = { "punct": "punctuation", "quantmod": "modifier of quantifier", "rcmod": "relative clause modifier", + "relcl": "relative clause modifier", + "reparandum": "overridden disfluency", "root": "root", + "vocative": "vocative", "xcomp": "open clausal complement", # Dependency labels (German) # TIGER Treebank