Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to obtain predictions #6

Open
MalgiVonKokos opened this issue Apr 12, 2020 · 0 comments
Open

error when trying to obtain predictions #6

MalgiVonKokos opened this issue Apr 12, 2020 · 0 comments

Comments

@MalgiVonKokos
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant