pytorch-transformers-classification icon indicating copy to clipboard operation
pytorch-transformers-classification copied to clipboard

Based on the Pytorch-Transformers library by HuggingFace. To be used as a starting point for employing Transformer models in text classification tasks. Contains code to easily train BERT, XLNet, RoBER...

Results 20 pytorch-transformers-classification issues
Sort by recently updated
recently updated
newest added

Hi, Can you please take a look at this [issue](https://github.com/NVIDIA/apex/issues/621)? Thanks!

other than the specified format as below, **can I have more columns as features?** guid: An ID for the row. label: The label for the row (should be an int)....

Once the model has been rained how to do prediction using this?I have examples with no labels, i need to find all the predicted labels .

Can you teach me how to make predications after model is trained? Does it come with build in method like .predict()?

Hi, I am trying to predict a score (float) using regression and I was wondering what changes need to be made in lines 254 and 258 in [utils.py](https://github.com/ThilinaRajapakse/pytorch-transformers-classification/blob/master/utils.py) Thanks!

- **My train file has 8000 sentences but when i implemented this code it shows number of samples =817** INFO:__main__:Creating features from dataset file at data/ 8000 817 100%|██████████| 817/817...

I am trying to reproduce the code with smaller subset : 100K train; 5K dev examples Getting this result: INFO:__main__:***** Eval results outputs ***** INFO:__main__: fn = 0 INFO:__main__: fp...

First thanks for sharing the code, it's really helpful!! I have a question when I tried to use the pretrained Bert on my dataset for sentence classification. I realize that...

Hello again - I was wondering if you might have pointers on how to nincorporate metadata with the text. I think I am good with adding a custom layer on...