AlekseyDorkin:

ngth, so there’s no truncation either.


Great thanks!!! It worked.
But how one can know that padding does indeed accept string value max_length? I tried to go through both of the tokenizer pages: tokenizer and BertTokenizer. But none of these pages state that padding does indeed accept string values like max_length. Now I am guessing what else it might be accepting and where can I find the whole list.
Am I not reading carefully? Can you please tell how can I navigate the docs to obtain this information / link to doc stating this?