2015-03-26 02:16:40 +00:00
|
|
|
from .tokens cimport Tokens
|
|
|
|
from .typedefs cimport flags_t, attr_id_t, attr_t
|
|
|
|
from .parts_of_speech cimport univ_pos_t
|
|
|
|
from .structs cimport Morphology, TokenC, LexemeC
|
|
|
|
from .vocab cimport Vocab
|
|
|
|
from .strings cimport StringStore
|
|
|
|
|
2015-04-19 08:31:31 +00:00
|
|
|
|
2015-03-26 02:16:40 +00:00
|
|
|
cdef class Span:
|
|
|
|
cdef readonly Tokens _seq
|
|
|
|
cdef public int i
|
|
|
|
cdef public int start
|
|
|
|
cdef public int end
|
|
|
|
cdef readonly int label
|
|
|
|
cdef public Span head
|
|
|
|
cdef public list rights
|
|
|
|
cdef public list lefts
|