mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
22 lines
459 B
Cython
22 lines
459 B
Cython
from libcpp.vector cimport vector
|
|
|
|
from spacy.spacy cimport StringHash
|
|
|
|
from spacy.spacy cimport Language
|
|
from spacy.word cimport Word
|
|
from spacy.tokens cimport Tokens
|
|
cimport cython
|
|
|
|
|
|
cdef class English(spacy.Language):
|
|
cdef int find_split(self, unicode word)
|
|
cdef int set_orth(self, unicode word, Word lex) except -1
|
|
|
|
|
|
cdef English EN
|
|
|
|
|
|
cpdef Word lookup(unicode word)
|
|
cpdef list tokenize(unicode string)
|
|
cpdef unicode unhash(StringHash hash_value)
|