From 7888914edd27ecbc5f7d0bc64bf75c68163ae26a Mon Sep 17 00:00:00 2001 From: Reza Gharibi Date: Fri, 22 Oct 2021 00:30:26 +0330 Subject: [PATCH] Fix a typo in preprocessing docs (#14108) --- docs/source/preprocessing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/preprocessing.rst b/docs/source/preprocessing.rst index eb8d8702db..600d0efaab 100644 --- a/docs/source/preprocessing.rst +++ b/docs/source/preprocessing.rst @@ -228,7 +228,7 @@ Everything you always wanted to know about padding and truncation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We have seen the commands that will work for most cases (pad your batch to the length of the maximum sentence and -truncate to the maximum length the mode can accept). However, the API supports more strategies if you need them. The +truncate to the maximum length the model can accept). However, the API supports more strategies if you need them. The three arguments you need to know for this are :obj:`padding`, :obj:`truncation` and :obj:`max_length`. - :obj:`padding` controls the padding. It can be a boolean or a string which should be: