mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-08 06:04:57 +03:00
Remove unused error
This commit is contained in:
parent
9e2eea11bf
commit
08c0c4140c
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user