diff --git a/spacy/gold/example.pyx b/spacy/gold/example.pyx index 10b537f22..76247100d 100644 --- a/spacy/gold/example.pyx +++ b/spacy/gold/example.pyx @@ -54,6 +54,12 @@ cdef class Example: def __set__(self, doc): self.y = doc + + def copy(self): + return Example( + self.x.copy(), + self.y.copy() + ) @classmethod def from_dict(cls, Doc predicted, dict example_dict):