Copy examples at the start of Language.update

This commit is contained in:
Matthew Honnibal 2020-06-25 21:19:33 +02:00
parent 0d2492c97a
commit 04583fe0c6
1 changed files with 1 additions and 1 deletions

View File

@ -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):