From cc983cd9cd6d662a7f6eae16d7af24e5d92fbc15 Mon Sep 17 00:00:00 2001 From: Fraser Greenlee Date: Mon, 30 Nov 2020 14:33:30 +0000 Subject: [PATCH] Correct docstring. (#8845) Related issue: https://github.com/huggingface/transformers/issues/8837 --- 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 61f35fefeb..01441fa704 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -2604,7 +2604,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin): Instead of :obj:`List[int]` you can have tensors (numpy arrays, PyTorch tensors or TensorFlow tensors), see the note above for the return type. - padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`False`): + padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`True`): Select a strategy to pad the returned sequences (according to the model's padding side and padding index) among: