| --- |
| license: apache-2.0 |
| task_categories: |
| - text-classification |
| - translation |
| language: |
| - en |
| tags: |
| - mental-health |
| - student-counseling |
| - translation |
| - nlp |
| - chatbot |
| size_categories: |
| - 100K<n<1M |
| --- |
| # Student Mental Health Counseling 100K |
|
|
| ## Dataset Overview |
|
|
| This dataset is derived from the original **[chillies/student-mental-health-counseling-vn](https://huggingface.co/datasets/chillies/student-mental-health-counseling-vn)** dataset, which contains student mental health counseling conversations in Vietnamese. |
|
|
| In this version, the **first 100,000 rows** from the original dataset have been translated into English using Google Translator, making the data more accessible for English-speaking researchers and developers. |
|
|
| ## Dataset Details |
|
|
| - **Dataset Name**: [arafatanam/Student-Mental-Health-Counseling-100K](https://huggingface.co/datasets/arafatanam/Student-Mental-Health-Counseling-100K) |
| - **Source Dataset**: [chillies/student-mental-health-counseling-vn](https://huggingface.co/datasets/chillies/student-mental-health-counseling-vn) |
| - **Language**: Translated from Vietnamese to English |
| - **Sample Size**: 100,000 rows |
| - **Translation Tool**: [GoogleTranslator (deep_translator)](https://pypi.org/project/deep-translator/) |
| - **Format**: CSV (originally saved) and auto-converted to Parquet by Hugging Face for convenience |
|
|
| ## Processing Steps |
|
|
| The dataset was prepared using the following steps: |
|
|
| 1. Loaded the original dataset using the `datasets` library. |
| 2. Selected the **first 100,000 rows** for translation. |
| 3. Applied GoogleTranslator (`deep_translator`) to convert text from Vietnamese to English. |
| 4. Saved the translated dataset as a CSV file. |
|
|
| ## Code Used for Translation |
|
|
| ```python |
| !pip install datasets deep_translator |
| from datasets import load_dataset |
| import pandas as pd |
| from deep_translator import GoogleTranslator |
| |
| # Load the dataset from Hugging Face |
| dataset = load_dataset("chillies/student-mental-health-counseling-vn", split="train") |
| |
| df = pd.DataFrame(dataset) |
| |
| # Select the first 100,000 rows |
| sampled_df = df.iloc[:100000] |
| |
| # Function to translate text from Vietnamese to English |
| def translate_text(text): |
| try: |
| return GoogleTranslator(source='vi', target='en').translate(text) |
| except Exception: |
| return text # Return original text if translation fails |
| |
| # Apply translation to all text columns |
| for column in sampled_df.select_dtypes(include=['object']).columns: |
| sampled_df[column] = sampled_df[column].apply(translate_text) |
| |
| # Save the translated sample to a new CSV file |
| sampled_df.to_csv("student_mh_counseling_100k.csv", index=False) |
| ``` |
|
|
| ## Usage |
|
|
| This dataset can be used for: |
|
|
| - **Mental Health Chatbots**: Developing AI-driven support systems. |
| - **Sentiment Analysis**: Analyzing emotional tones in student counseling sessions. |
| - **Natural Language Processing (NLP)**: Training models for mental health-related text understanding. |
|
|
| ## License |
|
|
| This dataset is released under the **Apache 2.0 License**. |
| Please ensure compliance with licensing terms, especially regarding modifications and redistribution. |
| For more details, refer to the [original dataset's license](https://huggingface.co/datasets/chillies/student-mental-health-counseling-vn). |
|
|
| ## Acknowledgments |
|
|
| Special thanks to the creators of **chillies/student-mental-health-counseling-vn** for providing the original dataset. |