FineTuneBERT icon indicating copy to clipboard operation
FineTuneBERT copied to clipboard

error when trying to obtain predictions

Open MalgiVonKokos opened this issue 4 years ago • 0 comments

Hi!

I have little experience with BERT and transformers and can't figure out how to use the model the make predictions once the additional classification layer it's trained and reloaded, I keep getting dimension errors that seem to suggest there is something wrong with input. Is it possible to use SentimentClassifier class to make predictions by prediction = model(sequence, attention_mask)? Could you possibly provide an example of applying a finetuned model that would work with your implementation? Thanks!

Malgi

MalgiVonKokos avatar Apr 12 '20 22:04 MalgiVonKokos