FinnSentiment -- A Finnish Social Media Corpus for Sentiment Polarity Annotation
Paper β’ 2012.02613 β’ Published
Run fergusq/finbert-finnsentiment on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/fergusq/finbert-finnsentiment. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/fergusq/finbert-finnsentiment on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")# 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")This is a FinBERT model fine-tuned with the FinnSentiment dataset. 90% of sentences were used for training and 10% for evaluation.
| Metric | Score |
|---|---|
| Accuracy | 0.8639028475711893 |
| F1-score | 0.8643024701696561 |
| Precision | 0.8653866541244811 |
| Recall | 0.8639028475711893 |
| Matthews | 0.6764924917164834 |
FinBERT-FinnSentiment is licensed under the CC BY 4.0 License (same as FinBERT and the FinnSentiment dataset).
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="fergusq/finbert-finnsentiment")