Fix setting name in error message

This commit is contained in:
Adriane Boyd 2023-12-20 17:23:44 +01:00
parent 3d86539e23
commit 288f623cf2

View File

@ -984,9 +984,9 @@ class Errors(metaclass=ErrorsWithCodes):
E1055 = ("The 'replace_listener' callback expects {num_params} parameters, "
"but only callbacks with one or three parameters are supported")
E1056 = ("The `TextCatBOW` architecture expects a length of at least 1, was {length}.")
E1057 = ("The `TextCatReduce` architecture must be used with at least one reduction. "
"Please enable one of `use_reduce_first`, `reduce_last`, `use_reduce_max` or "
"`use_reduce_mean`.")
E1057 = ("The `TextCatReduce` architecture must be used with at least one "
"reduction. Please enable one of `use_reduce_first`, "
"`use_reduce_last`, `use_reduce_max` or `use_reduce_mean`.")
# Deprecated model shortcuts, only used in errors and warnings