spaCy/spacy/lang.pxd

21 lines
535 B
Cython
Raw Normal View History

2014-08-03 00:51:52 +04:00
from libc.stdint cimport uint32_t
from libc.stdint cimport uint64_t
2014-08-25 18:42:22 +04:00
from spacy.word cimport Lexeme
cdef class Language:
cdef object name
2014-08-25 18:42:22 +04:00
cdef dict blobs
cdef dict lexicon
cpdef list tokenize(self, unicode text)
2014-08-16 05:22:03 +04:00
cdef Word lookup(self, unicode string)
cdef list lookup_chunk(self, unicode chunk)
2014-08-16 05:22:03 +04:00
cdef list new_chunk(self, unicode string, list substrings)
cdef Word new_lexeme(self, unicode lex)
2014-08-16 05:22:03 +04:00
cpdef list find_substrings(self, unicode chunk)
cdef int find_split(self, unicode word)