Remove unused error

This commit is contained in:
Adriane Boyd 2022-10-21 11:09:32 +02:00
parent 9e2eea11bf
commit 08c0c4140c
2 changed files with 2 additions and 3 deletions

View File

@ -109,7 +109,7 @@ def find_threshold(
except KeyError as err:
wasabi.msg.fail(title=str(err), exits=1)
if not hasattr(pipe, "scorer"):
raise AttributeError(Errors.E1048)
raise AttributeError(Errors.E1047)
if not silent:
wasabi.msg.info(

View File

@ -952,8 +952,7 @@ class Errors(metaclass=ErrorsWithCodes):
"sure it's overwritten on the subclass.")
E1046 = ("{cls_name} is an abstract class and cannot be instantiated. If you are looking for spaCy's default "
"knowledge base, use `InMemoryLookupKB`.")
E1047 = ("`find_threshold()` only supports components of type `TrainablePipe`.")
E1048 = ("`find_threshold()` only supports components with a `scorer` attribute.")
E1047 = ("`find_threshold()` only supports components with a `scorer` attribute.")
# Deprecated model shortcuts, only used in errors and warnings