spaCy/spacy/tokens/span.pxd
2017-05-28 11:09:27 -05:00

20 lines
375 B
Cython

cimport numpy as np
from .doc cimport Doc
from ..typedefs cimport attr_t
cdef class Span:
cdef readonly Doc doc
cdef readonly int start
cdef readonly int end
cdef readonly int start_char
cdef readonly int end_char
cdef readonly attr_t label
cdef public _vector
cdef public _vector_norm
cpdef int _recalculate_indices(self) except -1