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

Sentiment Analysis with Pinecone example - Hugging Face model out of date #383

Open
Beloved6883 opened this issue Sep 21, 2024 · 1 comment

Comments

@Beloved6883
Copy link

To whom this may concern,

Thank you for the work to make these examples available. I was working through the Sentiment Analysis with Pinecone Google Colab notebook and found that the model_id for the RoBERTa model is out of date. Here's the latest model: cardiffnlp/twitter-roberta-base-sentiment-latest.

Thanks!

Natasha

@Beloved6883
Copy link
Author

Another issue that results from this updated model is that the labels are no longer: LABEL_0 for negative, LABEL_1 for neutral, and LABEL_2 for positive. They are just "negative", "neutral", and "positive." Therefore, the labels dictionary is probably unnecessary and could be converted to a list. Then, the get_sentiment() function should also be updated to reflect this.

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