diff --git a/spacy/errors.py b/spacy/errors.py index 2dde8cce4..6c796ef05 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -542,10 +542,6 @@ class Errors(metaclass=ErrorsWithCodes): E203 = ("If the {name} embedding layer is not updated " "during training, make sure to include it in 'annotating components'") - # New errors added in v4.x - E300 = ("nlp.pipe(text_tuples, as_tuples=True) has been replaced with:\n" - "nlp.pipe_as_tuples(text_tuples)") - # New errors added in v3.x E851 = ("The 'textcat' component labels should only have values of 0 or 1, " "but found value of '{val}'.") @@ -965,6 +961,8 @@ class Errors(metaclass=ErrorsWithCodes): E4003 = ("Training examples for distillation must have the exact same tokens in the " "reference and predicted docs.") E4004 = ("Backprop is not supported when is_train is not set.") + E4005 = ("nlp.pipe(text_tuples, as_tuples=True) has been replaced with:\n" + "nlp.pipe_as_tuples(text_tuples)") # fmt: on diff --git a/spacy/language.py b/spacy/language.py index 28a04239d..fe3a34040 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1577,7 +1577,7 @@ class Language: DOCS: https://spacy.io/api/language#pipe """ if as_tuples is not None: - raise ValueError(Errors.E300) + raise ValueError(Errors.E4005) # Set argument defaults if n_process == -1: