From ce491364585d80fb057a043481fbe58e5d8dd1b8 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Wed, 6 Jul 2022 17:28:15 +0900 Subject: [PATCH] Update NotImplementedError for coref component --- spacy/pipeline/coref.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spacy/pipeline/coref.py b/spacy/pipeline/coref.py index 9fd3c9472..ce7afb6d4 100644 --- a/spacy/pipeline/coref.py +++ b/spacy/pipeline/coref.py @@ -233,7 +233,12 @@ class CoreferenceResolver(TrainablePipe): return losses def rehearse(self, examples, *, sgd=None, losses=None, **config): - raise NotImplementedError + # TODO this should be added later + raise NotImplementedError( + Errors.E931.format( + parent="CoreferenceResolver", method="add_label", name=self.name + ) + ) def add_label(self, label: str) -> int: """Technically this method should be implemented from TrainablePipe,