Update NotImplementedError for coref component

This commit is contained in:
Paul O'Leary McCann 2022-07-06 17:28:15 +09:00
parent 5e405738d2
commit ce49136458

View File

@ -233,7 +233,12 @@ class CoreferenceResolver(TrainablePipe):
return losses return losses
def rehearse(self, examples, *, sgd=None, losses=None, **config): 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: def add_label(self, label: str) -> int:
"""Technically this method should be implemented from TrainablePipe, """Technically this method should be implemented from TrainablePipe,