mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Update spacy/tokens/span_group.pyx
Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
This commit is contained in:
parent
53e83abc8f
commit
58adea71df
|
@ -180,7 +180,6 @@ cdef class SpanGroup:
|
||||||
raise ValueError(Errors.E855.format(obj="span"))
|
raise ValueError(Errors.E855.format(obj="span"))
|
||||||
self.push_back(span.c)
|
self.push_back(span.c)
|
||||||
|
|
||||||
|
|
||||||
def extend(self, spans_or_span_group: Union[SpanGroup, Iterable["Span"]]):
|
def extend(self, spans_or_span_group: Union[SpanGroup, Iterable["Span"]]):
|
||||||
"""Add multiple spans or contents of another SpanGroup to the group.
|
"""Add multiple spans or contents of another SpanGroup to the group.
|
||||||
All spans must refer to the same Doc object as the span group.
|
All spans must refer to the same Doc object as the span group.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user