mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 11:20:19 +03:00
Correction
This commit is contained in:
parent
a1b8697aab
commit
c140bd6083
|
@ -955,7 +955,7 @@ class Errors(metaclass=ErrorsWithCodes):
|
|||
E1046 = ("{cls_name} is an abstract class and cannot be instantiated. If you are looking for spaCy's default "
|
||||
"knowledge base, use `InMemoryLookupKB`.")
|
||||
E1047 = ("Invalid rich group config '{label}'.")
|
||||
E1048 = ("Length > 63 in rich group config '{label}.")
|
||||
E1048 = ("Length > 31 in rich group config '{label}.")
|
||||
E1049 = ("Error splitting UTF-8 byte string into separate characters.")
|
||||
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ def _verify_rich_config_group(
|
|||
raise ValueError(Errors.E1047.format(label=label))
|
||||
elif search_chars is not None:
|
||||
raise ValueError(Errors.E1047.format(label=label))
|
||||
if lengths is not None and max(lengths) > 63:
|
||||
if lengths is not None and max(lengths) > 31:
|
||||
raise ValueError(Errors.E1048.format(label=label))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user