Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- fa
|
| 6 |
+
tags:
|
| 7 |
+
- therapy
|
| 8 |
+
pretty_name: Multilingual Therapy Dialogues
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
[]() []()
|
| 14 |
+
|
| 15 |
+
## Dataset Summary
|
| 16 |
+
**Multilingual Therapy Dialogues** is a diverse and bilingual dataset consisting of paired dialogues between patients and therapists in both Persian and English.
|
| 17 |
+
|
| 18 |
+
## Dataset Statistics
|
| 19 |
+
- Number of samples: 7,179
|
| 20 |
+
|
| 21 |
+
**English:**
|
| 22 |
+
1. Average tokens per sentence: 101.30
|
| 23 |
+
2. Maximum tokens in a sentence: 939
|
| 24 |
+
3. Average characters per sentence: 567.85
|
| 25 |
+
4. Number of unique tokens: 32,968
|
| 26 |
+
|
| 27 |
+
**Persian:**
|
| 28 |
+
1. Average tokens per sentence: 100.06
|
| 29 |
+
2. Maximum tokens in a sentence: 1,413
|
| 30 |
+
3. Average characters per sentence: 516.57
|
| 31 |
+
4. Number of unique tokens: 33,298
|
| 32 |
+
|
| 33 |
+
## Dataset Fields
|
| 34 |
+
1. **Patient**: Original English text spoken by the patient.
|
| 35 |
+
2. **Therapist**: Original English text spoken by the therapist.
|
| 36 |
+
3. **Translated Patient**: Persian translation of the patient's text.
|
| 37 |
+
4. **Translated Therapist**: Persian translation of the therapist's text.
|
| 38 |
+
|
| 39 |
+
## Dataset Generation Pipeline
|
| 40 |
+
|
| 41 |
+
The dataset was constructed using the following steps:
|
| 42 |
+
|
| 43 |
+
1. **Data Collection**: Dialogues were collected from various public sources, including:
|
| 44 |
+
- [Mental Health Counseling Conversations](https://huggingface.co/datasets/Amod/mental_health_counseling_conversations)
|
| 45 |
+
- [Mental Health CSV Dataset](https://www.kaggle.com/datasets/zuhairhasanshaik/datacsv)
|
| 46 |
+
- [Mental Health Conversational Data](https://www.kaggle.com/datasets/elvis23/mental-health-conversational-data)
|
| 47 |
+
- Additional manually curated sources
|
| 48 |
+
|
| 49 |
+
2. **Translation**: English dialogues were translated into Persian using the [SeamlessM4T model](https://github.com/facebookresearch/seamless_communication) by Meta AI.
|
| 50 |
+
|
| 51 |
+
3. **Refinement**: Translations were revised and enhanced in three steps using GPT-4o:
|
| 52 |
+
- First pass to make the tone more natural and emotionally sympathetic to be more likely to real world scenarios.
|
| 53 |
+
- Second pass to improve fluency and human-likeness.
|
| 54 |
+
- Final pass for consistency and correction of subtle translation errors.
|
| 55 |
+
|
| 56 |
+
4. **Filtering**: Only meaningful and conte
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
## Usage Instructions
|
| 60 |
+
|
| 61 |
+
### Option 1: Manual Download
|
| 62 |
+
|
| 63 |
+
Visit the [dataset repository](https://huggingface.co/datasets/Algorithmic-Human-Development-Group/Multilingual-Therapy-Dialogues/tree/main) and download the `SAT_dataset.csv` file.
|
| 64 |
+
|
| 65 |
+
### Option 2: Programmatic Download
|
| 66 |
+
|
| 67 |
+
Use the `huggingface_hub` library to download the dataset programmatically:
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
from huggingface_hub import hf_hub_download
|
| 71 |
+
import pandas as pd
|
| 72 |
+
|
| 73 |
+
dataset = hf_hub_download(
|
| 74 |
+
repo_id="Algorithmic-Human-Development-Group/Multilingual-Therapy-Dialogues",
|
| 75 |
+
filename="SAT_dataset.csv",
|
| 76 |
+
repo_type="dataset"
|
| 77 |
+
)
|
| 78 |
+
df = pd.read_csv(dataset)
|
| 79 |
+
df.head()
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Citations
|
| 83 |
+
If you find our paper, code, data, or models useful, please cite the paper:
|
| 84 |
+
```
|
| 85 |
+
To be updated once the paper is published.
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Contact
|
| 89 |
+
If you have questions, please email sinaaelahimanesh@gmail.com or mahdi.abootorabi2@gmail.com.
|