From 04583fe0c6eb4513075f9f2dd18fedcd6ee00d84 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 25 Jun 2020 21:19:33 +0200 Subject: [PATCH] Copy examples at the start of Language.update --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index c3ce6f233..573b83e5f 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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):