2014-08-02 20:51:52 +00:00
|
|
|
from libc.stdint cimport uint32_t
|
2014-07-07 02:21:06 +00:00
|
|
|
from libc.stdint cimport uint64_t
|
2014-08-25 14:42:22 +00:00
|
|
|
from spacy.word cimport Lexeme
|
2014-07-07 14:58:48 +00:00
|
|
|
|
2014-07-07 10:47:21 +00:00
|
|
|
|
2014-08-27 15:15:39 +00:00
|
|
|
cdef class Lexicon:
|
|
|
|
cpdef Lexeme lookup(self, unicode string)
|
2014-08-28 23:59:23 +00:00
|
|
|
|
|
|
|
cdef dict _dict
|
|
|
|
|
|
|
|
cdef list _string_features
|
|
|
|
cdef list _flag_features
|
2014-08-27 15:15:39 +00:00
|
|
|
|
|
|
|
|
2014-07-07 10:47:21 +00:00
|
|
|
cdef class Language:
|
2014-08-28 23:59:23 +00:00
|
|
|
cdef unicode name
|
2014-08-27 15:15:39 +00:00
|
|
|
cdef dict cache
|
|
|
|
cpdef readonly Lexicon lexicon
|
2014-07-07 02:21:06 +00:00
|
|
|
|
2014-08-22 15:28:23 +00:00
|
|
|
cpdef list tokenize(self, unicode text)
|
2014-08-28 23:59:23 +00:00
|
|
|
cpdef Lexeme lookup(self, unicode text)
|
2014-08-16 01:22:03 +00:00
|
|
|
|
2014-08-27 15:15:39 +00:00
|
|
|
cdef list _tokenize(self, unicode string)
|
2014-08-28 23:59:23 +00:00
|
|
|
cdef list _split(self, unicode string)
|
|
|
|
cdef int _split_one(self, unicode word)
|