spaCy/spacy/tokens/span.pxd
Adriane Boyd 727370c633 Remove Span._recalculate_indices
Remove `Span._recalculate_indices`, which is a remnant from the
deprecated `Span.merge`.
2020-10-09 14:42:51 +02:00

20 lines
407 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 readonly attr_t kb_id
cdef public _vector
cdef public _vector_norm
cpdef np.ndarray to_array(self, object features)