This commit is contained in:
Sylvain Gugger
2021-07-12 10:32:51 -04:00
parent 9adff7a0f4
commit 0f43e742d9

View File

@@ -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,