File size: 3,339 Bytes
4a31cc7
 
 
 
 
 
 
 
78f430f
 
4a31cc7
78f430f
 
 
 
 
 
 
 
 
 
 
4a31cc7
78f430f
4a31cc7
 
78f430f
4a31cc7
 
 
 
 
 
 
 
 
 
 
 
 
78f430f
4a31cc7
78f430f
 
 
4a31cc7
 
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
 
4a31cc7
78f430f
4a31cc7
78f430f
 
 
 
 
 
 
 
4a31cc7
78f430f
 
 
 
 
 
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
4a31cc7
78f430f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
library_name: setfit
tags:
- setfit
- sentence-transformers
- text-classification
- generated_from_setfit_trainer
metrics:
- f1
- accuracy
widget:
- text: >-
    A combined 20 million people per year die of smoking and hunger,  so
    authorities can't seem to feed people and they allow you to buy cigarettes
    but we are facing another lockdown for a virus that has a 99.5% survival
    rate!!! THINK PEOPLE. LOOK AT IT LOGICALLY WITH YOUR OWN EYES.
- text: >-
    Scientists do not agree on the consequences of climate change, nor is there
    any consensus on that subject. The predictions on that from are just
    ascientific speculation. Bring on the warming."
- text: >-
    If Tam is our "top doctor"....I am going back to leaches and voodoo...just
    as much science in that as the crap she spouts
- text: "Can she skip school by herself and sit infront of parliament? \r\n Fake emotions and just a good actor."
- text: my dad had huge ones..so they may be real..
pipeline_tag: text-classification
inference: false
base_model: sentence-transformers/paraphrase-mpnet-base-v2
model-index:
- name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
  results:
  - task:
      type: text-classification
      name: Text Classification
    dataset:
      name: Unknown
      type: unknown
      split: test
    metrics:
    - type: metric
      value: 0.688144336139226
      name: Metric
license: mit
language:
- en
---

# Computational Analysis of Communicative Acts for Understanding Crisis News Comment Discourses

The official trained models for **"Computational Analysis of Communicative Acts for Understanding Crisis News Comment Discourses"**. 

This model is based on **SetFit** ([SetFit: Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)) and uses the **sentence-transformers/paraphrase-mpnet-base-v2** pretrained model. It has been fine-tuned on our **crisis narratives dataset**.

---

### Model Information

- **Architecture:** SetFit with sentence-transformers/paraphrase-mpnet-base-v2  
- **Task:** Single-label classification for communicative act actions  
- **Classes:**  
  - `informing statement`  
  - `challenge`  
  - `rejection`  
  - `appreciation`  
  - `request`  
  - `question`  
  - `acceptance`  
  - `apology`
  - `evaluation`
  - `proposal`
  - `denial`
  - `admission`

---

### How to Use the Model

You can find the code to fine-tune this model and detailed instructions in the following GitHub repository:  
[Acts in Crisis Narratives - SetFit Fine-Tuning Notebook](https://github.com/Aalto-CRAI-CIS/Acts-in-crisis-narratives/blob/main/few_shot_learning/SetFit.ipynb)

#### Steps to Load and Use the Model:

1. Install the SetFit library:  
   ```bash
   pip install setfit
   ```
   
2. Load the model and run inference:  
   ```python
   from setfit import SetFitModel

   # Download from the 🤗 Hub
   model = SetFitModel.from_pretrained("CrisisNarratives/setfit-13classes-single_label")
   
   # Run inference
   preds = model("I'm sorry.")
   ```

For detailed instructions, refer to the GitHub repository linked above.

---

### Citation

If you use this model in your work, please cite:  

##### TO BE ADDED.

### Questions or Feedback?

For questions or feedback, please reach out via our [contact form](mailto:faezeghorbanpour96@example.com).