Thilina Rajapakse

Results 57 comments of Thilina Rajapakse

It might be an issue with pandas. Try updating pandas to the latest version.

Python 3.7. I can't remember the exact version, although I can check later. The function that is throwing the error is in the utils.py file. Please check whether this keyword...

Please use [Simple Transformers](https://github.com/ThilinaRajapakse/simpletransformers) as this repo is now outdated. To answer your question, this repo does not have such a built-in function whereas Simple Transformers does. If you have...

``` from simpletransformers.classification import ClassificationModel model = ClassificationModel('roberta', '') model.predict([]) ```

This answer was regarding the Simple Transformers library. I am not sure whether you are referring to Simple Transformers or this repo. Please open an issue on Simple Transformers if...

Not without creating your own model class. Transformer models only accept a sequence of text as its input.

I'm not sure where that piece of code is from. Essentially, you'll need to edit the BertForSequenceClassification class in the transformers library so that it can accept additional inputs. You'll...

No problem! Take a look at [Simple Transformers](https://github.com/ThilinaRajapakse/simpletransformers) as well. You may find it easier to work with compared to this repo.

That error normally happens when you have bad data in your dataset (invalid labels, special characters, etc.) I don't use cloud GPUs so I'm afraid I can't really recommend any.

You can run them on either. However, running on CPU will be far too slow for it to be practical. I always train using a GPU.