diff --git a/spacy/errors.py b/spacy/errors.py index 16188ca8a..391770ef2 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -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.") diff --git a/spacy/ml/models/tok2vec.py b/spacy/ml/models/tok2vec.py index 3906f6b42..7325c2683 100644 --- a/spacy/ml/models/tok2vec.py +++ b/spacy/ml/models/tok2vec.py @@ -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))