Unverified Commit 417bb914 authored by Peter Götz's avatar Peter Götz Committed by GitHub
Browse files

In PreTrainedTokenizerBase add missing word in error message (#27949)

"text input must of type" -> "text input must be of type"
parent 5cec306c
......@@ -2858,13 +2858,13 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin):
if not _is_valid_text_input(text):
raise ValueError(
"text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
"text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) "
"or `List[List[str]]` (batch of pretokenized examples)."
)
if text_pair is not None and not _is_valid_text_input(text_pair):
raise ValueError(
"text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
"text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) "
"or `List[List[str]]` (batch of pretokenized examples)."
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment