2014-07-07 06:21:06 +04:00
|
|
|
from libcpp.vector cimport vector
|
2014-07-05 22:51:42 +04:00
|
|
|
|
2014-07-07 06:21:06 +04:00
|
|
|
from spacy.spacy cimport StringHash
|
2014-07-05 22:51:42 +04:00
|
|
|
|
2014-07-07 14:47:21 +04:00
|
|
|
from spacy.spacy cimport Language
|
2014-08-24 21:24:42 +04:00
|
|
|
from spacy.word cimport LatinWord
|
2014-08-22 01:49:14 +04:00
|
|
|
cimport cython
|
|
|
|
|
|
|
|
|
2014-07-07 14:47:21 +04:00
|
|
|
cdef class English(spacy.Language):
|
2014-08-18 21:14:00 +04:00
|
|
|
cdef int find_split(self, unicode word)
|
2014-08-24 21:24:42 +04:00
|
|
|
cdef LatinWord new_lexeme(self, unicode string)
|
2014-08-22 02:02:37 +04:00
|
|
|
|
2014-07-07 14:47:21 +04:00
|
|
|
|
|
|
|
cdef English EN
|
2014-07-05 22:51:42 +04:00
|
|
|
|
2014-08-22 02:02:37 +04:00
|
|
|
|
2014-08-22 19:28:23 +04:00
|
|
|
cpdef Word lookup(unicode word)
|
|
|
|
cpdef list tokenize(unicode string)
|
2014-07-05 22:51:42 +04:00
|
|
|
cpdef unicode unhash(StringHash hash_value)
|