Downloads · 30 days
4
6% of all-time downloads
Finnish-actions/SetFit-FinBERT1-A1-challenge
SetFit-FinBERT1-A1-challenge 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 challenge or not. The configuration of the model is that t…
Downloads · 30 days
4
6% of all-time downloads
All-time downloads
65
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 challenge or not. The configuration of the model is that the model is based on only one annotator's annotations (annotator A1). 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 Sukumini 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> |
| 1 | <ul><li>'Etunimi Sukunimi Muistat väärin. Emme minkään liittoutumisen takia sotaan joutuneet, vaan suurvaltojen keskinäisten etupiirijakojen vuoksi. Neuvostoliitto tarvitsi Suomen alueita tukikohdikseen ja aloitti tekosyyllä sodan. Oletko itse elänyt talvisodan.? Minä ole, olin kuusivuotias vuonna 1939, kun sota syttyi ja muistan sen sodan ja jatkosodan vaiheet vielä kirkkaasti. Silloin meillä oli viisaat päättäjät ja urhea armeija jotka saivat meidät pelastettua. Nytkin meillä on hyvät, viisaat päättäjät, joihin meidän tulee luottaa ja minä luotan.'</li><li>'Etunimi Sukunimi Tässä ei nyt siitä sanottu yhtään mitään joten ei kannata spekuloida. Nuo ¨tokkopat¨ on ihan turhia.'</li><li>'Sukunimi kaupunginvaltuutettu Ei tietenkään. Hyvinhän me voimme itsekin tuottaa maakaasua ja raakaöljyä. Eikös?'</li></ul> |
| Label | Metric |
|---|---|
| all | 0.43 |
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-A1-challenge")
# 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 | 932 |
| 1 | 31 |
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.*
-->