2016-10-14 04:24:13 +03:00
|
|
|
cimport numpy as np
|
|
|
|
|
2015-07-13 21:20:58 +03:00
|
|
|
from .doc cimport Doc
|
2017-05-28 19:09:27 +03:00
|
|
|
from ..typedefs cimport attr_t
|
2015-07-13 21:20:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
cdef class Span:
|
2015-09-29 16:03:55 +03:00
|
|
|
cdef readonly Doc doc
|
2015-11-07 09:06:15 +03:00
|
|
|
cdef readonly int start
|
|
|
|
cdef readonly int end
|
|
|
|
cdef readonly int start_char
|
|
|
|
cdef readonly int end_char
|
2017-05-28 19:09:27 +03:00
|
|
|
cdef readonly attr_t label
|
2015-09-17 04:50:11 +03:00
|
|
|
|
|
|
|
cdef public _vector
|
|
|
|
cdef public _vector_norm
|
2015-11-07 00:56:49 +03:00
|
|
|
|
|
|
|
|
|
|
|
cpdef int _recalculate_indices(self) except -1
|