spaCy/spacy/en/attrs.pxd

37 lines
949 B
Cython
Raw Normal View History

2014-12-21 23:25:43 +03:00
from ..typedefs cimport FLAG0, FLAG1, FLAG2, FLAG3, FLAG4, FLAG5, FLAG6, FLAG7
from ..typedefs cimport FLAG8, FLAG9
from ..typedefs cimport ID as _ID
from ..typedefs cimport SIC as _SIC
from ..typedefs cimport SHAPE as _SHAPE
from ..typedefs cimport DENSE as _DENSE
2014-12-24 09:42:00 +03:00
from ..typedefs cimport CLUSTER as _CLUSTER
2014-12-21 23:25:43 +03:00
from ..typedefs cimport SHAPE as _SHAPE
from ..typedefs cimport PREFIX as _PREFIX
from ..typedefs cimport SUFFIX as _SUFFIX
from ..typedefs cimport LEMMA as _LEMMA
2014-12-24 09:42:00 +03:00
from ..typedefs cimport POS as _POS
2014-12-21 03:29:11 +03:00
# Work around the lack of global cpdef variables
cpdef enum:
IS_ALPHA = FLAG0
IS_ASCII = FLAG1
IS_DIGIT = FLAG2
IS_LOWER = FLAG3
IS_PUNCT = FLAG4
IS_SPACE = FLAG5
IS_TITLE = FLAG6
IS_UPPER = FLAG7
LIKE_URL = FLAG8
LIKE_NUM = FLAG9
ID = _ID
SIC = _SIC
2014-12-24 09:42:00 +03:00
SHAPE = _SHAPE
DENSE = _DENSE
2014-12-21 03:29:11 +03:00
PREFIX = _PREFIX
SUFFIX = _SUFFIX
2014-12-24 09:42:00 +03:00
CLUSTER = _CLUSTER
2014-12-21 03:29:11 +03:00
LEMMA = _LEMMA
2014-12-24 09:42:00 +03:00
POS = _POS