Update README.md
Browse files
README.md
CHANGED
|
@@ -37,9 +37,11 @@ model-index:
|
|
| 37 |
name: Metric
|
| 38 |
---
|
| 39 |
|
|
|
|
|
|
|
| 40 |
# SetFit with TurkuNLP/bert-base-finnish-cased-v1
|
| 41 |
|
| 42 |
-
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses
|
| 43 |
|
| 44 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 45 |
|
|
@@ -60,10 +62,9 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 60 |
|
| 61 |
### Model Sources
|
| 62 |
|
| 63 |
-
- **Repository:** [
|
| 64 |
-
- **Paper:**
|
| 65 |
-
-
|
| 66 |
-
|
| 67 |
### Model Labels
|
| 68 |
| Label | Examples |
|
| 69 |
|:------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
@@ -75,7 +76,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 75 |
### Metrics
|
| 76 |
| Label | Metric |
|
| 77 |
|:--------|:-------|
|
| 78 |
-
| **
|
| 79 |
|
| 80 |
## Uses
|
| 81 |
|
|
@@ -98,11 +99,20 @@ model = SetFitModel.from_pretrained("Finnish-actions/SetFit-FinBERT1-Avg-request
|
|
| 98 |
preds = model("Etunimi Sukunimi 🙋♀️")
|
| 99 |
```
|
| 100 |
|
| 101 |
-
|
| 102 |
### Downstream Use
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
<!--
|
| 108 |
### Out-of-Scope Use
|
|
@@ -134,6 +144,7 @@ preds = model("Etunimi Sukunimi 🙋♀️")
|
|
| 134 |
| 0 | 758 |
|
| 135 |
| 1 | 84 |
|
| 136 |
|
|
|
|
| 137 |
### Training Hyperparameters
|
| 138 |
- batch_size: (16, 16)
|
| 139 |
- num_epochs: (4, 4)
|
|
@@ -153,7 +164,7 @@ preds = model("Etunimi Sukunimi 🙋♀️")
|
|
| 153 |
- evaluation_strategy: epoch
|
| 154 |
- eval_max_steps: -1
|
| 155 |
- load_best_model_at_end: False
|
| 156 |
-
|
| 157 |
|
| 158 |
### Framework Versions
|
| 159 |
- Python: 3.11.9
|
|
@@ -178,6 +189,7 @@ preds = model("Etunimi Sukunimi 🙋♀️")
|
|
| 178 |
number= {1},
|
| 179 |
year = {2025}
|
| 180 |
}
|
|
|
|
| 181 |
```
|
| 182 |
|
| 183 |
<!--
|
|
|
|
| 37 |
name: Metric
|
| 38 |
---
|
| 39 |
|
| 40 |
+
# Detect Actions in Asynchronous Conversation Comments
|
| 41 |
+
|
| 42 |
# SetFit with TurkuNLP/bert-base-finnish-cased-v1
|
| 43 |
|
| 44 |
+
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 request or not. The configuration of the model is that the model is based on averaged annotations (from 3 annotators). 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.
|
| 45 |
|
| 46 |
The model has been trained using an efficient few-shot learning technique that involves:
|
| 47 |
|
|
|
|
| 62 |
|
| 63 |
### Model Sources
|
| 64 |
|
| 65 |
+
- **Repository:** [GitHub](https://github.com/henniina/Detecting-paired-actions)
|
| 66 |
+
- **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.
|
| 67 |
+
-
|
|
|
|
| 68 |
### Model Labels
|
| 69 |
| Label | Examples |
|
| 70 |
|:------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
| 76 |
### Metrics
|
| 77 |
| Label | Metric |
|
| 78 |
|:--------|:-------|
|
| 79 |
+
| **10-fold cross-validated F1** | 0.74 |
|
| 80 |
|
| 81 |
## Uses
|
| 82 |
|
|
|
|
| 99 |
preds = model("Etunimi Sukunimi 🙋♀️")
|
| 100 |
```
|
| 101 |
|
| 102 |
+
|
| 103 |
### Downstream Use
|
| 104 |
|
| 105 |
+
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).
|
| 106 |
+
|
| 107 |
+
### Out-of-Scope Use
|
| 108 |
+
|
| 109 |
+
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.
|
| 110 |
+
|
| 111 |
+
## Bias, Risks and Limitations
|
| 112 |
+
|
| 113 |
+
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.
|
| 114 |
+
If model is used to support moderation on social media, we recommend that final judgments should always be left for human moderators.
|
| 115 |
+
|
| 116 |
|
| 117 |
<!--
|
| 118 |
### Out-of-Scope Use
|
|
|
|
| 144 |
| 0 | 758 |
|
| 145 |
| 1 | 84 |
|
| 146 |
|
| 147 |
+
<!--
|
| 148 |
### Training Hyperparameters
|
| 149 |
- batch_size: (16, 16)
|
| 150 |
- num_epochs: (4, 4)
|
|
|
|
| 164 |
- evaluation_strategy: epoch
|
| 165 |
- eval_max_steps: -1
|
| 166 |
- load_best_model_at_end: False
|
| 167 |
+
-->
|
| 168 |
|
| 169 |
### Framework Versions
|
| 170 |
- Python: 3.11.9
|
|
|
|
| 189 |
number= {1},
|
| 190 |
year = {2025}
|
| 191 |
}
|
| 192 |
+
|
| 193 |
```
|
| 194 |
|
| 195 |
<!--
|