You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it produces a weird warning that says: Keyword arguments {'add_special_tokens': False} not recognized.
I traced the warning to this line which calls PreTrainedTokenizer.tokenize with the keyword argument add_special_tokens. It seems that the argument should be handled by self.prepare_for_tokenization inside PreTrainedTokenizer.tokenize, but it is not; leading to the warning.
Transformers version: 4.38.1. (BTW, 4.37.2 does not have this issue)
The text was updated successfully, but these errors were encountered:
When I run the following code:
it produces a weird warning that says:
Keyword arguments {'add_special_tokens': False} not recognized.
I traced the warning to this line which calls
PreTrainedTokenizer.tokenize
with the keyword argumentadd_special_tokens
. It seems that the argument should be handled byself.prepare_for_tokenization
insidePreTrainedTokenizer.tokenize
, but it is not; leading to the warning.Transformers version: 4.38.1. (BTW, 4.37.2 does not have this issue)
The text was updated successfully, but these errors were encountered: