We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f07e6c commit bb15d5bCopy full SHA for bb15d5b
spacy/tokens/doc.pyx
@@ -1180,12 +1180,12 @@ cdef class Doc:
1180
other.tensor = copy.deepcopy(self.tensor)
1181
other.cats = copy.deepcopy(self.cats)
1182
other.user_data = copy.deepcopy(self.user_data)
1183
+ other.spans = self.spans.copy()
1184
other.sentiment = self.sentiment
1185
other.has_unknown_spaces = self.has_unknown_spaces
1186
other.user_hooks = dict(self.user_hooks)
1187
other.user_token_hooks = dict(self.user_token_hooks)
1188
other.user_span_hooks = dict(self.user_span_hooks)
- other.spans = self.spans.copy()
1189
other.length = self.length
1190
other.max_length = self.max_length
1191
buff_size = other.max_length + (PADDING*2)
0 commit comments