mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
14 lines
309 B
Cython
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)
|