Skip to content

Commit 351ce60

Browse files
committed
Fix dict proxy copy
1 parent 827fb51 commit 351ce60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spacy/tokens/_dict_proxies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _make_span_group(self, name: str, spans: Iterable["Span"]) -> SpanGroup:
3434
return SpanGroup(self.doc_ref(), name=name, spans=spans)
3535

3636
def copy(self) -> "SpanGroups":
37-
return SpanGroup(self.doc_ref()).from_bytes(self.to_bytes())
37+
return SpanGroups(self.doc_ref()).from_bytes(self.to_bytes())
3838

3939
def to_bytes(self) -> bytes:
4040
# We don't need to serialize this as a dict, because the groups

0 commit comments

Comments
 (0)