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

How to use finBERT using Hugging Face model? #42

Closed
haylee111 opened this issue Mar 9, 2021 · 4 comments
Closed

How to use finBERT using Hugging Face model? #42

haylee111 opened this issue Mar 9, 2021 · 4 comments

Comments

@haylee111
Copy link

haylee111 commented Mar 9, 2021

I tried this code

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
import numpy as np

tokenizer = AutoTokenizer.from_pretrained("ProsusAI/finbert")
model = AutoModelForSequenceClassification.from_pretrained("ProsusAI/finbert")

but get this error.

OSError: Can't load 'ProsusAI/finbert'. Make sure that:

- 'ProsusAI/finbert' is a correct model identifier listed on 'https://huggingface.co/models'

- or 'ProsusAI/finbert' is the correct path to a directory containing a 'config.json' file
@doguaraci
Copy link
Member

This is a problem with the transformers library. Please see the discussion here.

@haylee111
Copy link
Author

Thank you, for the response !

@miguelperosanz
Copy link

Any update here? I have the same issue, ProsusAI/finbert does not load. I have the feeling the company ProsusAI decided to remove it from the models list?

@doguaraci
Copy link
Member

Hi the model is there. Like I said, this is an issue not related to us. Please see the discussion here.

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

3 participants