From 0f43e742d908772733870730dbddd8e00e0253ef Mon Sep 17 00:00:00 2001 From: Sylvain Gugger Date: Mon, 12 Jul 2021 10:32:51 -0400 Subject: [PATCH] Fix typo --- src/transformers/tokenization_utils_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index bd5642bb35..e9ac2389c1 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -3276,7 +3276,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin): """ warnings.warn( "`prepare_seq2seq_batch` is deprecated and will be removed in version 5 of 🤗 Transformers. Use the " - "regular `__call__` method to prepare your inputs and the tokenizer under the `with_target_tokenizer` " + "regular `__call__` method to prepare your inputs and the tokenizer under the `as_target_tokenizer` " "context manager to prepare your targets. See the documentation of your specific tokenizer for more " "details", FutureWarning,