From 288f623cf283be4ba3414590b9df70dc1a062cf4 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 20 Dec 2023 17:23:44 +0100 Subject: [PATCH] Fix setting name in error message --- spacy/errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index 2455c2f86..b6108dd0f 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -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