Update README.md
Browse files
README.md
CHANGED
|
@@ -44,9 +44,11 @@ model-index:
|
|
| 44 |
name: Metric
|
| 45 |
---
|
| 46 |
|
| 47 |
-
#
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 52 |
|
|
@@ -60,29 +62,28 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 60 |
- **Sentence Transformer body:** [TurkuNLP/bert-base-finnish-cased-v1](https://huggingface.co/TurkuNLP/bert-base-finnish-cased-v1)
|
| 61 |
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
| 62 |
- **Maximum Sequence Length:** 512 tokens
|
| 63 |
-
- **Number of Classes:** 2 classes
|
| 64 |
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
| 65 |
<!-- - **Language:** Unknown -->
|
| 66 |
<!-- - **License:** Unknown -->
|
| 67 |
|
| 68 |
### Model Sources
|
| 69 |
|
| 70 |
-
- **Repository:** [
|
| 71 |
-
- **Paper:**
|
| 72 |
-
-
|
| 73 |
-
|
| 74 |
### Model Labels
|
| 75 |
| Label | Examples |
|
| 76 |
|:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 77 |
| 0 | <ul><li>'Etunimi Sukunimi miten luulet tilanteen parantuneen kun sairaala- ja tehohoito potilaiden määrä on vain kasvanut silloisesta?\nOlet niin totaalisen puusilmäinen ja hallirusvihan vallassa, että tätä on turha jatkaa pitemmälle. Pysy terveenä ja rauhallista joulua!'</li><li>'Etunimi Sukunimi perustuslakia ei ole rikottu niissä asioissa mitä convoypellet väitti, kaikki mitä kaverit väittää ei ole totta .'</li><li>'Takaisin hiilivoimaan?'</li></ul> |
|
| 78 |
-
| 1 | <ul><li>'"Hylkiö" unionin toimesta johon ei kuulu.'</li><li>'Etunimi
|
| 79 |
|
| 80 |
## Evaluation
|
| 81 |
|
| 82 |
### Metrics
|
| 83 |
| Label | Metric |
|
| 84 |
|:--------|:-------|
|
| 85 |
-
| **
|
| 86 |
|
| 87 |
## Uses
|
| 88 |
|
|
@@ -105,11 +106,22 @@ model = SetFitModel.from_pretrained("Finnish-actions/SetFit-FinBERT1-Avg-stateme
|
|
| 105 |
preds = model("Kohta on lisää lapsia sairaalassa koronan vuoksi ☹")
|
| 106 |
```
|
| 107 |
|
| 108 |
-
|
| 109 |
### Downstream Use
|
| 110 |
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
<!--
|
| 115 |
### Out-of-Scope Use
|
|
@@ -141,6 +153,7 @@ preds = model("Kohta on lisää lapsia sairaalassa koronan vuoksi ☹")
|
|
| 141 |
| 0 | 218 |
|
| 142 |
| 1 | 624 |
|
| 143 |
|
|
|
|
| 144 |
### Training Hyperparameters
|
| 145 |
- batch_size: (16, 16)
|
| 146 |
- num_epochs: (4, 4)
|
|
@@ -219,6 +232,7 @@ preds = model("Kohta on lisää lapsia sairaalassa koronan vuoksi ☹")
|
|
| 219 |
| 3.8766 | 2450 | 0.0 | - |
|
| 220 |
| 3.9557 | 2500 | 0.0 | - |
|
| 221 |
| 4.0 | 2528 | - | 0.1996 |
|
|
|
|
| 222 |
|
| 223 |
### Framework Versions
|
| 224 |
- Python: 3.11.9
|
|
@@ -233,16 +247,17 @@ preds = model("Kohta on lisää lapsia sairaalassa koronan vuoksi ☹")
|
|
| 233 |
|
| 234 |
### BibTeX
|
| 235 |
```bibtex
|
| 236 |
-
@article{
|
| 237 |
-
doi = {10.
|
| 238 |
-
url = {https://
|
| 239 |
-
author = {
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
}
|
|
|
|
| 246 |
```
|
| 247 |
|
| 248 |
<!--
|
|
|
|
| 44 |
name: Metric
|
| 45 |
---
|
| 46 |
|
| 47 |
+
# Detect Questions in Asynchronous Conversation Comments
|
| 48 |
|
| 49 |
+
## SetFit with TurkuNLP/bert-base-finnish-cased-v1
|
| 50 |
+
|
| 51 |
+
This is a [SetFit](https://github.com/huggingface/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.
|
| 52 |
|
| 53 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 54 |
|
|
|
|
| 62 |
- **Sentence Transformer body:** [TurkuNLP/bert-base-finnish-cased-v1](https://huggingface.co/TurkuNLP/bert-base-finnish-cased-v1)
|
| 63 |
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
| 64 |
- **Maximum Sequence Length:** 512 tokens
|
| 65 |
+
- **Number of Classes:** 2 classes (action present yes/no)
|
| 66 |
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
| 67 |
<!-- - **Language:** Unknown -->
|
| 68 |
<!-- - **License:** Unknown -->
|
| 69 |
|
| 70 |
### Model Sources
|
| 71 |
|
| 72 |
+
- **Repository:** [GitHub](https://github.com/henniina/Detecting-paired-actions)
|
| 73 |
+
- **Paper:** Paakki, H., Toivanen, P. and Kajava K. (2025). Implicit and Indirect: Detecting Face-threatening and Paired Actions in Asynchronous Online Conversations. Northern European Journal of Language Technology (NEJLT), 11(1), pp. 58-83.
|
| 74 |
+
-
|
|
|
|
| 75 |
### Model Labels
|
| 76 |
| Label | Examples |
|
| 77 |
|:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 78 |
| 0 | <ul><li>'Etunimi Sukunimi miten luulet tilanteen parantuneen kun sairaala- ja tehohoito potilaiden määrä on vain kasvanut silloisesta?\nOlet niin totaalisen puusilmäinen ja hallirusvihan vallassa, että tätä on turha jatkaa pitemmälle. Pysy terveenä ja rauhallista joulua!'</li><li>'Etunimi Sukunimi perustuslakia ei ole rikottu niissä asioissa mitä convoypellet väitti, kaikki mitä kaverit väittää ei ole totta .'</li><li>'Takaisin hiilivoimaan?'</li></ul> |
|
| 79 |
+
| 1 | <ul><li>'"Hylkiö" unionin toimesta johon ei kuulu.'</li><li>'Etunimi Sukunimi en nyt varsinaisesti pelkästään tuota aihetta tarkoittanutkaan. Sekin on kuitenkin vähintään kyseenalaista, koska kyseessä ei ole valmis tuote, vaan hätämyyntiluvalla käytössä oleva ruiske, ja sen seurauksena on niinikään perusoikeudellinen terveydenhuollon taso turvaamattomalla tasolla.'</li><li>'Mikään ei ole niin varmaa kuin epävarma. KUKAAN ei millään voi tietää mitä tapahtuu koronan tai ylipäätään minkään suhteen. Joka muuta väittää on typerys...'</li></ul> |
|
| 80 |
|
| 81 |
## Evaluation
|
| 82 |
|
| 83 |
### Metrics
|
| 84 |
| Label | Metric |
|
| 85 |
|:--------|:-------|
|
| 86 |
+
| **5-fold cross-validated F1** | 0.74 |
|
| 87 |
|
| 88 |
## Uses
|
| 89 |
|
|
|
|
| 106 |
preds = model("Kohta on lisää lapsia sairaalassa koronan vuoksi ☹")
|
| 107 |
```
|
| 108 |
|
| 109 |
+
|
| 110 |
### Downstream Use
|
| 111 |
|
| 112 |
+
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).
|
| 113 |
+
|
| 114 |
+
## Out-of-Scope Use
|
| 115 |
+
|
| 116 |
+
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.
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
### Bias, Risks and Limitations
|
| 120 |
+
|
| 121 |
+
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.
|
| 122 |
+
|
| 123 |
+
If model is used to support moderation on social media, we recommend that final judgments should always be left for human moderators.
|
| 124 |
+
|
| 125 |
|
| 126 |
<!--
|
| 127 |
### Out-of-Scope Use
|
|
|
|
| 153 |
| 0 | 218 |
|
| 154 |
| 1 | 624 |
|
| 155 |
|
| 156 |
+
<!--
|
| 157 |
### Training Hyperparameters
|
| 158 |
- batch_size: (16, 16)
|
| 159 |
- num_epochs: (4, 4)
|
|
|
|
| 232 |
| 3.8766 | 2450 | 0.0 | - |
|
| 233 |
| 3.9557 | 2500 | 0.0 | - |
|
| 234 |
| 4.0 | 2528 | - | 0.1996 |
|
| 235 |
+
-->
|
| 236 |
|
| 237 |
### Framework Versions
|
| 238 |
- Python: 3.11.9
|
|
|
|
| 247 |
|
| 248 |
### BibTeX
|
| 249 |
```bibtex
|
| 250 |
+
@article{paakki-implicit-indirect,
|
| 251 |
+
doi = {https://doi.org/10.3384/nejlt.2000-1533.2025.5980},
|
| 252 |
+
url = {https://nejlt.ep.liu.se/article/view/5980},
|
| 253 |
+
author = {Paakki, Henna and Toivanen, Pihla and Kajava, Kaisla},
|
| 254 |
+
title = {Implicit and Indirect: Detecting Face-threatening and Paired Actions in Asynchronous Online Conversations},
|
| 255 |
+
publisher = {Northern European Journal of Language Technology (NEJLT)},
|
| 256 |
+
volume= {11},
|
| 257 |
+
number= {1},
|
| 258 |
+
year = {2025}
|
| 259 |
}
|
| 260 |
+
|
| 261 |
```
|
| 262 |
|
| 263 |
<!--
|