Update `PreTrainedTokenizerBase` to check/handle batch length for `text_pair` parameter (#11486)
* Update tokenization_utils_base.py
* add assertion
* check batch len
* Update src/transformers/tokenization_utils_base.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* add error message
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>