mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-18 04:02:20 +03:00
Update NotImplementedError for coref component
This commit is contained in:
parent
5e405738d2
commit
ce49136458
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user