_batch_encode_plus() got an unexpected keyword argument 'return_attention_masks' return attention masks Got an Unexpected Keyword Argument in Transformers A Guide to Troubleshooting You re encountering a common error when using the transform 2 min read 04-09-2024 17