spaCy/spacy/tokens.pxd

15 lines
409 B
Cython
Raw Normal View History

from spacy.lexeme cimport LexemeC
2014-09-10 16:11:13 +00:00
cdef class Tokens:
cdef size_t length
cdef size_t size
cdef LexemeC** lexemes
cdef push_back(self, LexemeC* lexeme)
2014-09-10 16:11:13 +00:00
cpdef unicode string(self, size_t i)
cpdef double prob(self, size_t i)
cpdef size_t cluster(self, size_t i)
cpdef bint check_flag(self, size_t i, size_t flag_id)
cpdef unicode string_view(self, size_t i, size_t view_id)