[doc] consistent True/False/None default format (#14951)
* [doc] consistent True/False/None default format * Update src/transformers/models/xlnet/modeling_xlnet.py Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
This commit is contained in:
@@ -2868,7 +2868,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
|
||||
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It
|
||||
adds special tokens, truncates sequences if overflowing while taking into account the special tokens and
|
||||
manages a moving window (with user defined stride) for overflowing tokens. Please Note, for *pair_ids*
|
||||
different than *None* and *truncation_strategy = longest_first* or *True*, it is not possible to return
|
||||
different than `None` and *truncation_strategy = longest_first* or `True`, it is not possible to return
|
||||
overflowing tokens. Such a combination of arguments will raise an error.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user