spaCy/spacy/lang.pxd

25 lines
527 B
Cython
Raw Normal View History

2014-08-03 00:51:52 +04:00
from libc.stdint cimport uint32_t
from libc.stdint cimport uint64_t
2014-08-25 18:42:22 +04:00
from spacy.word cimport Lexeme
cdef class Lexicon:
2014-08-28 21:45:09 +04:00
cdef list string_features
cdef list flag_features
2014-08-28 21:45:09 +04:00
cdef dict _dict
cpdef Lexeme lookup(self, unicode string)
cdef class Language:
cdef object name
cdef dict cache
cpdef readonly Lexicon lexicon
cpdef list tokenize(self, unicode text)
2014-08-16 05:22:03 +04:00
cdef list _tokenize(self, unicode string)
cpdef list _split(self, unicode string)
cpdef int _split_one(self, unicode word)