spaCy/spacy/tokens/span_group.pxd
2023-06-26 11:41:03 +02:00

14 lines
309 B
Cython

from libcpp.memory cimport shared_ptr
from libcpp.vector cimport vector
from ..structs cimport SpanC
cdef class SpanGroup:
cdef public object _doc_ref
cdef public str name
cdef public dict attrs
cdef vector[shared_ptr[SpanC]] c
cdef void push_back(self, const shared_ptr[SpanC] &span)