Correction

This commit is contained in:
richardpaulhudson 2022-10-27 18:19:19 +02:00
parent a1b8697aab
commit c140bd6083
2 changed files with 2 additions and 2 deletions

View File

@ -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.")

View File

@ -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))