Downloads · 30 days
11
16% of all-time downloads
Finnish-actions/SetFit-FinBERT1-A3-statement
SetFit-FinBERT1-A3-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 question or not. The configuration of the model is that th…
Downloads · 30 days
11
16% of all-time downloads
All-time downloads
68
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 question or not. The configuration of the model is that the model is based on only one annotator's annotations (annotator A3). 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 |
|---|---|
| 1 | <ul><li>'Etunimi Sukunimi jep. Suomalainen rokottamaton paha, ukrainalainen rokottamaton hyvä. Tää näkyy olevan nyt se mentaliteetti tällä hetkellä...'</li><li>'Etunimi Sukunimi tilastot.'</li><li>'Etunimi Sukunimi myös delta oli suurimmalle osalle myös rokottamattomille lähes oireeton, omikron kuulemma vielä lievempi👏'</li></ul> |
| 0 | <ul><li>'Etunimi Sukunimi RAutaa rajoille Suomi suureksi ja Viena vapaaksi'</li><li>'Perussuomalaiset siivoamassa keskustelupalstoja, koronakriisiavustuksien avulla? Onhan tämä nyt joku Monty Python -sketsi?'</li><li>'on se hyvä että Kiurussa ei ole miestä vaan Niskavuoren Hetaa joka pistää tuollaisen pojanklopin aisoihin viimeistään silloin kun Vapaavuori on kaltereissa johtaessaan Uuttamaata terveyspaniikkiin.'</li></ul> |
| Label | Metric |
|---|---|
| 5-fold cross-validated F1 | 0.78 |
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-A3")
# Run inference
preds = model("Etunimi Sukunimi ei varmasti moni uskalla")
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 | 19.6854 | 213 |
| Label | Training Sample Count |
|---|---|
| 0 | 263 |
| 1 | 700 |
@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.*
-->