mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
16 lines
362 B
Cython
16 lines
362 B
Cython
from libcpp.vector cimport vector
|
|
|
|
from spacy.spacy cimport StringHash
|
|
from spacy.spacy cimport Vocab
|
|
from spacy.lexeme cimport Lexeme
|
|
from spacy.lexeme cimport Lexeme_addr
|
|
|
|
|
|
cdef Vocab VOCAB
|
|
cdef dict BACOV
|
|
|
|
|
|
cpdef Lexeme_addr lookup(unicode word) except 0
|
|
cpdef vector[Lexeme_addr] tokenize(unicode string) except *
|
|
cpdef unicode unhash(StringHash hash_value)
|