mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
16 lines
380 B
Cython
16 lines
380 B
Cython
from spacy.spacy cimport Language
|
|
from spacy.lexeme cimport LexID
|
|
from spacy.tokens cimport Tokens
|
|
from spacy.lexeme cimport StringHash
|
|
|
|
|
|
cdef class PennTreebank3(Language):
|
|
cpdef list find_substrings(self, unicode word)
|
|
|
|
|
|
cdef PennTreebank3 PTB3
|
|
|
|
cpdef LexID lookup(unicode word) except 0
|
|
cpdef Tokens tokenize(unicode string)
|
|
cpdef unicode unhash(StringHash hash_value)
|