mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-02 23:03:41 +03:00
Fix dict proxy copy
This commit is contained in:
parent
827fb51e6c
commit
351ce600c5
|
@ -34,7 +34,7 @@ class SpanGroups(UserDict):
|
||||||
return SpanGroup(self.doc_ref(), name=name, spans=spans)
|
return SpanGroup(self.doc_ref(), name=name, spans=spans)
|
||||||
|
|
||||||
def copy(self) -> "SpanGroups":
|
def copy(self) -> "SpanGroups":
|
||||||
return SpanGroup(self.doc_ref()).from_bytes(self.to_bytes())
|
return SpanGroups(self.doc_ref()).from_bytes(self.to_bytes())
|
||||||
|
|
||||||
def to_bytes(self) -> bytes:
|
def to_bytes(self) -> bytes:
|
||||||
# We don't need to serialize this as a dict, because the groups
|
# We don't need to serialize this as a dict, because the groups
|
||||||
|
|
Loading…
Reference in New Issue
Block a user