mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update glossary.py to match information found in documentation (#3704) (closes ##3679)
* 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
This commit is contained in:
parent
5a14a13f64
commit
82d034f976
|
@ -168,6 +168,7 @@ GLOSSARY = {
|
||||||
# Dependency Labels (English)
|
# Dependency Labels (English)
|
||||||
# ClearNLP / Universal Dependencies
|
# ClearNLP / Universal Dependencies
|
||||||
# https://github.com/clir/clearnlp-guidelines/blob/master/md/specifications/dependency_labels.md
|
# https://github.com/clir/clearnlp-guidelines/blob/master/md/specifications/dependency_labels.md
|
||||||
|
"acl": "clausal modifier of noun (adjectival clause)",
|
||||||
"acomp": "adjectival complement",
|
"acomp": "adjectival complement",
|
||||||
"advcl": "adverbial clause modifier",
|
"advcl": "adverbial clause modifier",
|
||||||
"advmod": "adverbial modifier",
|
"advmod": "adverbial modifier",
|
||||||
|
@ -177,22 +178,32 @@ GLOSSARY = {
|
||||||
"attr": "attribute",
|
"attr": "attribute",
|
||||||
"aux": "auxiliary",
|
"aux": "auxiliary",
|
||||||
"auxpass": "auxiliary (passive)",
|
"auxpass": "auxiliary (passive)",
|
||||||
|
"case": "case marking",
|
||||||
"cc": "coordinating conjunction",
|
"cc": "coordinating conjunction",
|
||||||
"ccomp": "clausal complement",
|
"ccomp": "clausal complement",
|
||||||
|
"clf": "classifier",
|
||||||
"complm": "complementizer",
|
"complm": "complementizer",
|
||||||
|
"compound": "compound",
|
||||||
"conj": "conjunct",
|
"conj": "conjunct",
|
||||||
"cop": "copula",
|
"cop": "copula",
|
||||||
"csubj": "clausal subject",
|
"csubj": "clausal subject",
|
||||||
"csubjpass": "clausal subject (passive)",
|
"csubjpass": "clausal subject (passive)",
|
||||||
|
"dative": "dative",
|
||||||
"dep": "unclassified dependent",
|
"dep": "unclassified dependent",
|
||||||
"det": "determiner",
|
"det": "determiner",
|
||||||
|
"discourse": "discourse element",
|
||||||
|
"dislocated": "dislocated elements",
|
||||||
"dobj": "direct object",
|
"dobj": "direct object",
|
||||||
"expl": "expletive",
|
"expl": "expletive",
|
||||||
|
"fixed": "fixed multiword expression",
|
||||||
|
"flat": "flat multiword expression",
|
||||||
|
"goeswith": "goes with",
|
||||||
"hmod": "modifier in hyphenation",
|
"hmod": "modifier in hyphenation",
|
||||||
"hyph": "hyphen",
|
"hyph": "hyphen",
|
||||||
"infmod": "infinitival modifier",
|
"infmod": "infinitival modifier",
|
||||||
"intj": "interjection",
|
"intj": "interjection",
|
||||||
"iobj": "indirect object",
|
"iobj": "indirect object",
|
||||||
|
"list": "list",
|
||||||
"mark": "marker",
|
"mark": "marker",
|
||||||
"meta": "meta modifier",
|
"meta": "meta modifier",
|
||||||
"neg": "negation modifier",
|
"neg": "negation modifier",
|
||||||
|
@ -201,11 +212,15 @@ GLOSSARY = {
|
||||||
"npadvmod": "noun phrase as adverbial modifier",
|
"npadvmod": "noun phrase as adverbial modifier",
|
||||||
"nsubj": "nominal subject",
|
"nsubj": "nominal subject",
|
||||||
"nsubjpass": "nominal subject (passive)",
|
"nsubjpass": "nominal subject (passive)",
|
||||||
|
"nounmod": "modifier of nominal",
|
||||||
|
"npmod": "noun phrase as adverbial modifier",
|
||||||
"num": "number modifier",
|
"num": "number modifier",
|
||||||
"number": "number compound modifier",
|
"number": "number compound modifier",
|
||||||
|
"nummod": "numeric modifier",
|
||||||
"oprd": "object predicate",
|
"oprd": "object predicate",
|
||||||
"obj": "object",
|
"obj": "object",
|
||||||
"obl": "oblique nominal",
|
"obl": "oblique nominal",
|
||||||
|
"orphan": "orphan",
|
||||||
"parataxis": "parataxis",
|
"parataxis": "parataxis",
|
||||||
"partmod": "participal modifier",
|
"partmod": "participal modifier",
|
||||||
"pcomp": "complement of preposition",
|
"pcomp": "complement of preposition",
|
||||||
|
@ -218,7 +233,10 @@ GLOSSARY = {
|
||||||
"punct": "punctuation",
|
"punct": "punctuation",
|
||||||
"quantmod": "modifier of quantifier",
|
"quantmod": "modifier of quantifier",
|
||||||
"rcmod": "relative clause modifier",
|
"rcmod": "relative clause modifier",
|
||||||
|
"relcl": "relative clause modifier",
|
||||||
|
"reparandum": "overridden disfluency",
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
"vocative": "vocative",
|
||||||
"xcomp": "open clausal complement",
|
"xcomp": "open clausal complement",
|
||||||
# Dependency labels (German)
|
# Dependency labels (German)
|
||||||
# TIGER Treebank
|
# TIGER Treebank
|
||||||
|
|
Loading…
Reference in New Issue
Block a user