System Info
In tokenization_utils_base.py line 1190, there is a special_tokens.keys() done. But special_tokens is typed as List[str].
And when using it, I have special_tokens being equal to ['<s>NOTUSED', '</s>NOTUSED', '<unk>NOTUSED'] this lead to the error 'list' object has no attribute 'keys'
Who can help?
No response
Information
Tasks
Reproduction
use AutoTokenizer.from_pretrained(model_path) with a valid model_path and a valid content
Expected behavior
not raising an error and working
System Info
In
tokenization_utils_base.pyline 1190, there is aspecial_tokens.keys()done. Butspecial_tokensis typed asList[str].And when using it, I have
special_tokensbeing equal to['<s>NOTUSED', '</s>NOTUSED', '<unk>NOTUSED']this lead to the error'list' object has no attribute 'keys'Who can help?
No response
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
use
AutoTokenizer.from_pretrained(model_path)with a valid model_path and a valid contentExpected behavior
not raising an error and working