Instructions to use bardsai/twitter-sentiment-pl-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bardsai/twitter-sentiment-pl-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bardsai/twitter-sentiment-pl-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bardsai/twitter-sentiment-pl-base") model = AutoModelForSequenceClassification.from_pretrained("bardsai/twitter-sentiment-pl-base") - Notebooks
- Google Colab
- Kaggle
Twitter Sentiment PL (base)
Twitter Sentiment PL (base) is a model based on herbert-base for analyzing sentiment of Polish twitter posts. It was trained on the translated version of TweetEval by Barbieri et al., 2020 for 10 epochs on single RTX3090 gpu
The model will give you a three labels: positive, negative and neutral.
How to use
You can use this model directly with a pipeline for sentiment-analysis:
from transformers import pipeline
nlp = pipeline("sentiment-analysis", model="bardsai/twitter-sentiment-pl-base")
nlp("Nigdy przegrana nie sprawiła mi takiej radości. Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl")
[{'label': 'positive', 'score': 0.9997233748435974}]
Performance
| Metric | Value |
|---|---|
| f1 macro | 0.658 |
| precision macro | 0.655 |
| recall macro | 0.662 |
| accuracy | 0.662 |
| samples per second | 129.9 |
(The performance was evaluated on RTX 3090 gpu)
Changelog
- 2022-12-01: Initial release
- 2023-07-19: Improvement of translation quality
About bards.ai
At bards.ai, we focus on providing machine learning expertise and skills to our partners, particularly in the areas of nlp, machine vision and time series analysis. Our team is located in Wroclaw, Poland. Please visit our website for more information: bards.ai
Let us know if you use our model :). Also, if you need any help, feel free to contact us at info@bards.ai
- Downloads last month
- 1,055