mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-26 00:20:43 +03:00
Fix copying SpanGroups
This commit is contained in:
parent
8f07e6c901
commit
bb15d5b22f
|
@ -1180,12 +1180,12 @@ cdef class Doc:
|
||||||
other.tensor = copy.deepcopy(self.tensor)
|
other.tensor = copy.deepcopy(self.tensor)
|
||||||
other.cats = copy.deepcopy(self.cats)
|
other.cats = copy.deepcopy(self.cats)
|
||||||
other.user_data = copy.deepcopy(self.user_data)
|
other.user_data = copy.deepcopy(self.user_data)
|
||||||
|
other.spans = self.spans.copy()
|
||||||
other.sentiment = self.sentiment
|
other.sentiment = self.sentiment
|
||||||
other.has_unknown_spaces = self.has_unknown_spaces
|
other.has_unknown_spaces = self.has_unknown_spaces
|
||||||
other.user_hooks = dict(self.user_hooks)
|
other.user_hooks = dict(self.user_hooks)
|
||||||
other.user_token_hooks = dict(self.user_token_hooks)
|
other.user_token_hooks = dict(self.user_token_hooks)
|
||||||
other.user_span_hooks = dict(self.user_span_hooks)
|
other.user_span_hooks = dict(self.user_span_hooks)
|
||||||
other.spans = self.spans.copy()
|
|
||||||
other.length = self.length
|
other.length = self.length
|
||||||
other.max_length = self.max_length
|
other.max_length = self.max_length
|
||||||
buff_size = other.max_length + (PADDING*2)
|
buff_size = other.max_length + (PADDING*2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user