Instructions to use yigitkucuk/Sentimentale with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yigitkucuk/Sentimentale with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yigitkucuk/Sentimentale")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yigitkucuk/Sentimentale") model = AutoModelForSequenceClassification.from_pretrained("yigitkucuk/Sentimentale", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| tags: | |
| - text-classification | |
| language: | |
| - en | |
| widget: | |
| - text: "Oh, the tragedy!" | |
| datasets: | |
| - yigitkucuk/sentimentale-dataset | |
| co2_eq_emissions: | |
| emissions: 0.7402856123778213 | |
| ## Validation Metrics | |
| - Loss: 0.576 | |
| - Accuracy: 0.827 | |
| - Macro F1: 0.711 | |
| - Micro F1: 0.827 | |
| - Weighted F1: 0.827 | |
| - Macro Precision: 0.708 | |
| - Micro Precision: 0.827 | |
| - Weighted Precision: 0.828 | |
| - Macro Recall: 0.716 | |
| - Micro Recall: 0.827 | |
| - Weighted Recall: 0.827 | |
| - Problem type: Multi-class Classification | |
| - CO2 Emissions (in grams): 0.7403 | |
| - Model ID: 3099088026 | |
| ## Use with Python API | |
| ``` | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("yigitkucuk/Sentimentale", use_auth_token=True) | |
| tokenizer = AutoTokenizer.from_pretrained("yigitkucuk/Sentimentale", use_auth_token=True) | |
| inputs = tokenizer("Oh, the tragedy!", return_tensors="pt") | |
| outputs = model(**inputs) | |
| ``` |