ThilinaRajapakse / simpletransformers

Transformers for Information Retrieval, Text Classification, NER, QA, Language Modelling, Language Generation, T5, Multi-Modal, and Conversational AI
https://simpletransformers.ai/
Apache License 2.0
4.11k stars 727 forks source link

error using multilingual xlm models and xlmroberta #749

Closed stefdam closed 3 years ago

stefdam commented 4 years ago

Hello ,

I am not sure if this is a bug or just these models are not yet supported.

I tried binary classification using class ClassificationModel and I encoutered the following errors:

1) keyerror using 'xlmroberta' as model type

2) unexpected keyword using xlm multilingual models like xlm-mlm-xnli15-1024

"init() got an unexpected keyword argument 'sliding_window' "

ThilinaRajapakse commented 4 years ago

xlmroberta is supported for Classification. sliding_window is a model args, which is why you get that error.

model_args = ClassificationArgs()
model_args.sliding_window = True
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.