Instructions to use fergusq/finbert-finnsentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fergusq/finbert-finnsentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="fergusq/finbert-finnsentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("fergusq/finbert-finnsentiment") model = AutoModelForSequenceClassification.from_pretrained("fergusq/finbert-finnsentiment", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from fergusq/finbert-finnsentiment: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/fergusq/finbert-finnsentiment/resolve/main/README.md
- Command line
-
hf download hf://fergusq/finbert-finnsentiment/README.md
-
curl -L -o README.md https://huggingface.co/fergusq/finbert-finnsentiment/resolve/main/README.md
748 Bytes
metadata
language: fi
license: cc-by-4.0
FinBERT fine-tuned with the FinnSentiment dataset
This is a FinBERT model fine-tuned with the FinnSentiment dataset. 90% of sentences were used for training and 10% for evaluation.
Evaluation results
| Metric | Score |
|---|---|
| Accuracy | 0.8639028475711893 |
| F1-score | 0.8643024701696561 |
| Precision | 0.8653866541244811 |
| Recall | 0.8639028475711893 |
| Matthews | 0.6764924917164834 |
License
FinBERT-FinnSentiment is licensed under the CC BY 4.0 License (same as FinBERT and the FinnSentiment dataset).
