mirror of https://github.com/explosion/spaCy.git
Copy examples at the start of Language.update
This commit is contained in:
parent
0d2492c97a
commit
04583fe0c6
|
@ -535,7 +535,7 @@ class Language(object):
|
|||
examples = [examples]
|
||||
for eg in examples:
|
||||
if isinstance(eg, Example):
|
||||
converted_examples.append(eg)
|
||||
converted_examples.append(eg.copy())
|
||||
elif isinstance(eg, tuple):
|
||||
doc, annot = eg
|
||||
if isinstance(doc, str):
|
||||
|
|
Loading…
Reference in New Issue