mirror of https://github.com/explosion/spaCy.git
* Use lower case strings for dependency label names in symbols enum
This commit is contained in:
parent
7b4af3d1e7
commit
e70368d157
|
@ -351,71 +351,71 @@ cpdef enum symbol_t:
|
||||||
VerbType_mod # U
|
VerbType_mod # U
|
||||||
VerbType_light # U
|
VerbType_light # U
|
||||||
|
|
||||||
Name_person
|
PERSON
|
||||||
Name_norp
|
NORP
|
||||||
Name_facility
|
FACILITY
|
||||||
Name_org
|
ORG
|
||||||
Name_gpe
|
GPE
|
||||||
Name_loc
|
LOC
|
||||||
Name_product
|
PRODUCT
|
||||||
Name_event
|
EVENT
|
||||||
Name_work_of_art
|
WORK_OF_ART
|
||||||
Name_language
|
LANGUAGE
|
||||||
|
|
||||||
Unit_date
|
DATE
|
||||||
Unit_time
|
TIME
|
||||||
Unit_percent
|
PERCENT
|
||||||
Unit_money
|
MONEY
|
||||||
Unit_quantity
|
QUANTITY
|
||||||
Unit_ordinal
|
ORDINAL
|
||||||
Unit_cardinal
|
CARDINAL
|
||||||
|
|
||||||
Dep_acomp
|
acomp
|
||||||
Dep_advcl
|
advcl
|
||||||
Dep_advmod
|
advmod
|
||||||
Dep_agent
|
agent
|
||||||
Dep_amod
|
amod
|
||||||
Dep_appos
|
appos
|
||||||
Dep_attr
|
attr
|
||||||
Dep_aux
|
aux
|
||||||
Dep_auxpass
|
auxpass
|
||||||
Dep_cc
|
cc
|
||||||
Dep_ccomp
|
ccomp
|
||||||
Dep_complm
|
complm
|
||||||
Dep_conj
|
conj
|
||||||
Dep_csubj
|
csubj
|
||||||
Dep_csubjpass
|
csubjpass
|
||||||
Dep_dep
|
dep
|
||||||
Dep_det
|
det
|
||||||
Dep_dobj
|
dobj
|
||||||
Dep_expl
|
expl
|
||||||
Dep_hmod
|
hmod
|
||||||
Dep_hyph
|
hyph
|
||||||
Dep_infmod
|
infmod
|
||||||
Dep_intj
|
intj
|
||||||
Dep_iobj
|
iobj
|
||||||
Dep_mark
|
mark
|
||||||
Dep_meta
|
meta
|
||||||
Dep_neg
|
neg
|
||||||
Dep_nmod
|
nmod
|
||||||
Dep_nn
|
nn
|
||||||
Dep_npadvmod
|
npadvmod
|
||||||
Dep_nsubj
|
nsubj
|
||||||
Dep_nsubjpass
|
nsubjpass
|
||||||
Dep_num
|
num
|
||||||
Dep_number
|
number
|
||||||
Dep_oprd
|
oprd
|
||||||
Dep_parataxis
|
parataxis
|
||||||
Dep_partmod
|
partmod
|
||||||
Dep_pcomp
|
pcomp
|
||||||
Dep_pobj
|
pobj
|
||||||
Dep_poss
|
poss
|
||||||
Dep_possessive
|
possessive
|
||||||
Dep_preconj
|
preconj
|
||||||
Dep_prep
|
prep
|
||||||
Dep_prt
|
prt
|
||||||
Dep_punct
|
punct
|
||||||
Dep_quantmod
|
quantmod
|
||||||
Dep_rcmod
|
rcmod
|
||||||
Dep_root
|
root
|
||||||
Dep_xcomp
|
xcomp
|
||||||
|
|
|
@ -351,74 +351,74 @@ IDS = {
|
||||||
"VerbType_mod ": VerbType_mod, # U,
|
"VerbType_mod ": VerbType_mod, # U,
|
||||||
"VerbType_light ": VerbType_light, # U,
|
"VerbType_light ": VerbType_light, # U,
|
||||||
|
|
||||||
"Name_person": Name_person,
|
"PERSON": PERSON,
|
||||||
"Name_norp": Name_norp,
|
"NORP": NORP,
|
||||||
"Name_facility": Name_facility,
|
"FACILITY": FACILITY,
|
||||||
"Name_org": Name_org,
|
"ORG": ORG,
|
||||||
"Name_gpe": Name_gpe,
|
"GPE": GPE,
|
||||||
"Name_loc": Name_loc,
|
"LOC": LOC,
|
||||||
"Name_product": Name_product,
|
"PRODUCT": PRODUCT,
|
||||||
"Name_event": Name_event,
|
"EVENT": EVENT,
|
||||||
"Name_work_of_art": Name_work_of_art,
|
"WORK_OF_ART": WORK_OF_ART,
|
||||||
"Name_language": Name_language,
|
"LANGUAGE": LANGUAGE,
|
||||||
|
|
||||||
"Unit_date": Unit_date,
|
"DATE": DATE,
|
||||||
"Unit_time": Unit_time,
|
"TIME": TIME,
|
||||||
"Unit_percent": Unit_percent,
|
"PERCENT": PERCENT,
|
||||||
"Unit_money": Unit_money,
|
"MONEY": MONEY,
|
||||||
"Unit_quantity": Unit_quantity,
|
"QUANTITY": QUANTITY,
|
||||||
"Unit_ordinal": Unit_ordinal,
|
"ORDINAL": ORDINAL,
|
||||||
"Unit_cardinal": Unit_cardinal,
|
"CARDINAL": CARDINAL,
|
||||||
|
|
||||||
"Dep_acomp": Dep_acomp,
|
"acomp": acomp,
|
||||||
"Dep_advcl": Dep_advcl,
|
"advcl": advcl,
|
||||||
"Dep_advmod": Dep_advmod,
|
"advmod": advmod,
|
||||||
"Dep_agent": Dep_agent,
|
"agent": agent,
|
||||||
"Dep_amod": Dep_amod,
|
"amod": amod,
|
||||||
"Dep_appos": Dep_appos,
|
"appos": appos,
|
||||||
"Dep_attr": Dep_attr,
|
"attr": attr,
|
||||||
"Dep_aux": Dep_aux,
|
"aux": aux,
|
||||||
"Dep_auxpass": Dep_auxpass,
|
"auxpass": auxpass,
|
||||||
"Dep_cc": Dep_cc,
|
"cc": cc,
|
||||||
"Dep_ccomp": Dep_ccomp,
|
"ccomp": ccomp,
|
||||||
"Dep_complm": Dep_complm,
|
"complm": complm,
|
||||||
"Dep_conj": Dep_conj,
|
"conj": conj,
|
||||||
"Dep_csubj": Dep_csubj,
|
"csubj": csubj,
|
||||||
"Dep_csubjpass": Dep_csubjpass,
|
"csubjpass": csubjpass,
|
||||||
"Dep_dep": Dep_dep,
|
"dep": dep,
|
||||||
"Dep_det": Dep_det,
|
"det": det,
|
||||||
"Dep_dobj": Dep_dobj,
|
"dobj": dobj,
|
||||||
"Dep_expl": Dep_expl,
|
"expl": expl,
|
||||||
"Dep_hmod": Dep_hmod,
|
"hmod": hmod,
|
||||||
"Dep_hyph": Dep_hyph,
|
"hyph": hyph,
|
||||||
"Dep_infmod": Dep_infmod,
|
"infmod": infmod,
|
||||||
"Dep_intj": Dep_intj,
|
"intj": intj,
|
||||||
"Dep_iobj": Dep_iobj,
|
"iobj": iobj,
|
||||||
"Dep_mark": Dep_mark,
|
"mark": mark,
|
||||||
"Dep_meta": Dep_meta,
|
"meta": meta,
|
||||||
"Dep_neg": Dep_neg,
|
"neg": neg,
|
||||||
"Dep_nmod": Dep_nmod,
|
"nmod": nmod,
|
||||||
"Dep_nn": Dep_nn,
|
"nn": nn,
|
||||||
"Dep_npadvmod": Dep_npadvmod,
|
"npadvmod": npadvmod,
|
||||||
"Dep_nsubj": Dep_nsubj,
|
"nsubj": nsubj,
|
||||||
"Dep_nsubjpass": Dep_nsubjpass,
|
"nsubjpass": nsubjpass,
|
||||||
"Dep_num": Dep_num,
|
"num": num,
|
||||||
"Dep_number": Dep_number,
|
"number": number,
|
||||||
"Dep_oprd": Dep_oprd,
|
"oprd": oprd,
|
||||||
"Dep_parataxis": Dep_parataxis,
|
"parataxis": parataxis,
|
||||||
"Dep_partmod": Dep_partmod,
|
"partmod": partmod,
|
||||||
"Dep_pcomp": Dep_pcomp,
|
"pcomp": pcomp,
|
||||||
"Dep_pobj": Dep_pobj,
|
"pobj": pobj,
|
||||||
"Dep_poss": Dep_poss,
|
"poss": poss,
|
||||||
"Dep_possessive": Dep_possessive,
|
"possessive": possessive,
|
||||||
"Dep_preconj": Dep_preconj,
|
"preconj": preconj,
|
||||||
"Dep_prep": Dep_prep,
|
"prep": prep,
|
||||||
"Dep_prt": Dep_prt,
|
"prt": prt,
|
||||||
"Dep_punct": Dep_punct,
|
"punct": punct,
|
||||||
"Dep_quantmod": Dep_quantmod,
|
"quantmod": quantmod,
|
||||||
"Dep_rcmod": Dep_rcmod,
|
"rcmod": rcmod,
|
||||||
"Dep_root": Dep_root,
|
"root": root,
|
||||||
"Dep_xcomp": Dep_xcomp
|
"xcomp": xcomp
|
||||||
}
|
}
|
||||||
|
|
||||||
NAMES = [it[0] for it in sorted(IDS.items(), key=lambda it: it[1])]
|
NAMES = [it[0] for it in sorted(IDS.items(), key=lambda it: it[1])]
|
||||||
|
|
Loading…
Reference in New Issue