Space out symbols enum, to make maintaining easier

This commit is contained in:
Matthew Honnibal 2019-03-07 12:14:23 +01:00
parent 34651c8ddf
commit be5235369c
2 changed files with 16 additions and 16 deletions

View File

@ -1,7 +1,9 @@
from . cimport symbols
# Reserve 64 values for flag features
cdef enum attr_id_t:
NULL_ATTR
IS_ALPHA
NULL_ATTR = 0
IS_ALPHA = symbols.IS_ALPHA
IS_ASCII
IS_DIGIT
IS_LOWER
@ -20,7 +22,7 @@ cdef enum attr_id_t:
IS_RIGHT_PUNCT
IS_CURRENCY
FLAG19 = 19
FLAG19 = symbols.FLAG19
FLAG20
FLAG21
FLAG22
@ -66,7 +68,7 @@ cdef enum attr_id_t:
FLAG62
FLAG63
ID
ID = symbols.ID
ORTH
LOWER
NORM
@ -74,7 +76,7 @@ cdef enum attr_id_t:
PREFIX
SUFFIX
LENGTH
LENGTH = symbols.LENGTH
CLUSTER
LEMMA
POS
@ -86,5 +88,4 @@ cdef enum attr_id_t:
SENT_START
SPACY
PROB
LANG

View File

@ -19,7 +19,7 @@ cdef enum symbol_t:
IS_RIGHT_PUNCT
IS_CURRENCY
FLAG19 = 19
FLAG19 = 1000
FLAG20
FLAG21
FLAG22
@ -65,7 +65,7 @@ cdef enum symbol_t:
FLAG62
FLAG63
ID
ID = 2000
ORTH
LOWER
NORM
@ -73,7 +73,7 @@ cdef enum symbol_t:
PREFIX
SUFFIX
LENGTH
LENGTH = 3000
CLUSTER
LEMMA
POS
@ -87,7 +87,7 @@ cdef enum symbol_t:
PROB
LANG
ADJ
ADJ = 4000
ADP
ADV
AUX
@ -108,7 +108,7 @@ cdef enum symbol_t:
EOL
SPACE
Animacy_anim
Animacy_anim = 5000
Animacy_inan
Animacy_hum # U20
Animacy_nhum
@ -385,7 +385,7 @@ cdef enum symbol_t:
VerbType_mod # U
VerbType_light # U
PERSON
PERSON = 6000
NORP
FACILITY
ORG
@ -397,7 +397,7 @@ cdef enum symbol_t:
LANGUAGE
LAW
DATE
DATE = 7000
TIME
PERCENT
MONEY
@ -405,7 +405,8 @@ cdef enum symbol_t:
ORDINAL
CARDINAL
acomp
acl = 8000
acomp
advcl
advmod
agent
@ -458,5 +459,3 @@ cdef enum symbol_t:
rcmod
root
xcomp
acl