2016-10-14 01:24:13 +00:00
|
|
|
cimport numpy as np
|
|
|
|
|
2015-07-13 18:20:58 +00:00
|
|
|
from .doc cimport Doc
|
2017-05-28 16:09:27 +00:00
|
|
|
from ..typedefs cimport attr_t
|
2015-07-13 18:20:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
cdef class Span:
|
2015-09-29 13:03:55 +00:00
|
|
|
cdef readonly Doc doc
|
2015-11-07 06:06:15 +00:00
|
|
|
cdef readonly int start
|
|
|
|
cdef readonly int end
|
|
|
|
cdef readonly int start_char
|
|
|
|
cdef readonly int end_char
|
2017-05-28 16:09:27 +00:00
|
|
|
cdef readonly attr_t label
|
2019-03-14 14:48:40 +00:00
|
|
|
cdef readonly attr_t kb_id
|
2015-09-17 01:50:11 +00:00
|
|
|
|
|
|
|
cdef public _vector
|
|
|
|
cdef public _vector_norm
|
2015-11-06 21:56:49 +00:00
|
|
|
|
2017-08-19 10:20:45 +00:00
|
|
|
cpdef np.ndarray to_array(self, object features)
|