From b799af16de31ec61b6757c80b1da36aaea7921e0 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 30 Sep 2020 00:05:27 +0200 Subject: [PATCH] Don't raise in Pipe.initialize if not implemented --- spacy/pipeline/pipe.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/pipeline/pipe.pyx b/spacy/pipeline/pipe.pyx index 49d0bea35..5316620e9 100644 --- a/spacy/pipeline/pipe.pyx +++ b/spacy/pipeline/pipe.pyx @@ -36,7 +36,7 @@ cdef class Pipe: @property def labels(self) -> Optional[Tuple[str]]: return [] - + @property def label_data(self): """Optional JSON-serializable data that would be sufficient to recreate @@ -207,7 +207,7 @@ cdef class Pipe: DOCS: https://nightly.spacy.io/api/pipe#initialize """ - raise NotImplementedError(Errors.E931.format(method="initialize", name=self.name)) + pass def _ensure_examples(self, get_examples): if get_examples is None or not hasattr(get_examples, "__call__"):