Downloads · 30 days
8
13% of all-time downloads
Finnish-actions/SetFit-FinBERT1-A2-statement
SetFit-FinBERT1-A2-statement is a text classification model from Finnish-actions. Use it when you need a label for a piece of text. It is set up for setfit.
This is a SetFit model that can be used for Text Classification of actions in asynchronous conversation. This particular model detects if a comment includes a statement or not. The configuration of the model is that t…
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
64
Public
Parameters
125M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This is a SetFit model that can be used for Text Classification of actions in asynchronous conversation. This particular model detects if a comment includes a statement or not. The configuration of the model is that the model is based on only one annotator's annotations (annotator A2). Metric evaluations are based on conservative ground truth (see paper). This SetFit model uses TurkuNLP/bert-base-finnish-cased-v1 as the Sentence Transformer embedding model (using word embeddings). A LogisticRegression instance is used for classification. The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| 0 | <ul><li>'Etunimi Sukunimi herra senkun aloittaa keräyksen♥️'</li><li>'Etunimi Sukunimi venäjän syy hintojen nousu vai syytätkö sodastakin Suomen hallitusta ? 😖'</li><li>'Etunimi Etunimi Sukunimi, mikä on vastaus sössöttäjille, mahtava kuulla vastauksesi??'</li></ul> |
| 1 | <ul><li>'Etunimi Sukunimi Olikhaan se virve'</li><li>'Etunimi Sukunimi onneks sentään ryyppäämään pääsee, eikä tule siihen ikäviä taukoja'</li><li>'EU-maan ja länteen kallellaan olevan Suomen kimppuun käyminen olisi poliittisesti liian riskaapeliä jopa Putinille, kun Venäjällä on sisäisiäkin ongelmia ihan riittävästi. Täällä on tehty selväksi ettei mikään venäläisten "sotilaallinen apu" ole tervetullutta, eikä Suomen poliittinen tilanne uhkaa Venäjää millään lailla. Valko-Venäjä (eli Lukashenka) on jonkin sortin valtioliitossa Venäjän kanssa ja Ukraina ei kuulu mihinkään valtioliittoon. Ne ovat olleet siis ns. vapaata riistaa Venäjälle.'</li></ul> |
| Label | Metric |
|---|---|
| all | 0.84 |
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("Finnish-actions/SetFit-FinBERT1-A2-statement")
# Run inference
preds = model("Etunimi Sukunimi 🙋♀️")
NB. This model has been trained on data coming from Finnish language asynchronous conversations under crisis related news on Facebook. This specific model has been trained to detect whether a comment includes a question or not. It reflects only one of our annotators' label interpretations, so the best use of our models (see our paper) would be to combine a set of models we provide on our Huggingface (Finnish-actions), and use a model ensemble to provide label predictions. It needs to be noted also that the model may not be well applicable outside of its empirical context, so in downstream applications, one should always conduct an evaluation of the model applicability using manually annotated data from that specific context (see our paper for annotation instructions).
Please use this model only for action detection and analysis. Uses of this model and the involved data for generative purposes (e.g. NLG) is prohibited.
Note that the model may produce errors. Due to the size of the training dataset, model may not generalize very well even for other novel topics within the same context. Note that model predictions should not be regarded as final judgments e.g. for online moderation purposes, but each case should also be regarded individually if using model predictions to support moderation. Also, the annotations only reflect three (though experienced) annotators' interpretations, so there might be perspectives on data intepretation that have not been taken into account here. If model is used to support moderation on social media, we recommend that final judgments should always be left for human moderators.
<!-- ### Recommendations *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.* -->| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 1 | 20.3115 | 213 |
| Label | Training Sample Count |
|---|---|
| 0 | 213 |
| 1 | 750 |
If you use this model, please cite the following work:
@article{paakki-implicit-indirect,
doi = {https://doi.org/10.3384/nejlt.2000-1533.2025.5980},
url = {https://nejlt.ep.liu.se/article/view/5980},
author = {Paakki, Henna and Toivanen, Pihla and Kajava, Kaisla},
title = {Implicit and Indirect: Detecting Face-threatening and Paired Actions in Asynchronous Online Conversations},
publisher = {Northern European Journal of Language Technology (NEJLT)},
volume= {11},
number= {1},
year = {2025}
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->