mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
26 lines
580 B
Cython
26 lines
580 B
Cython
from libc.stdint cimport uint32_t
|
|
from libc.stdint cimport uint64_t
|
|
from spacy.word cimport Lexeme
|
|
|
|
|
|
cdef class Lexicon:
|
|
cpdef Lexeme lookup(self, unicode string)
|
|
|
|
cdef dict _dict
|
|
|
|
cdef list _string_features
|
|
cdef list _flag_features
|
|
|
|
|
|
cdef class Language:
|
|
cdef unicode name
|
|
cdef dict cache
|
|
cpdef readonly Lexicon lexicon
|
|
|
|
cpdef list tokenize(self, unicode text)
|
|
cpdef Lexeme lookup(self, unicode text)
|
|
|
|
cdef list _tokenize(self, unicode string)
|
|
cdef list _split(self, unicode string)
|
|
cdef int _split_one(self, unicode word)
|