mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
24 lines
546 B
Cython
24 lines
546 B
Cython
from libcpp.vector cimport vector
|
|
|
|
from spacy.spacy cimport StringHash
|
|
from spacy.lexeme cimport Lexeme
|
|
from spacy.lexeme cimport LexID
|
|
from spacy.lexeme cimport ClusterID
|
|
|
|
from spacy.spacy cimport Language
|
|
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, Lexeme* lex) except -1
|
|
|
|
|
|
cdef English EN
|
|
|
|
|
|
cpdef LexID lookup(unicode word) except 0
|
|
cpdef Tokens tokenize(unicode string)
|
|
cpdef unicode unhash(StringHash hash_value)
|