spaCy/spacy/spacy.pxd

28 lines
693 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
from spacy.word cimport Word
2014-08-03 00:51:52 +04:00
ctypedef uint32_t StringHash
cdef class Language:
cdef object name
cdef dict chunks
cdef dict vocab
cdef dict bacov
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 unicode unhash(self, StringHash hashed)
cpdef list find_substrings(self, unicode chunk)
cdef int find_split(self, unicode word)
cdef int set_orth(self, unicode string, Word word)