Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
sentiment-classification
Languages:
Khmer
Size:
1M - 10M
License:
| dataset_info: | |
| features: | |
| - name: id | |
| dtype: int64 | |
| - name: text | |
| dtype: string | |
| - name: label | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 1319560836 | |
| num_examples: 4185090 | |
| download_size: 160798607 | |
| dataset_size: 1319560836 | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train-* | |
| language: | |
| - km | |
| license: apache-2.0 | |
| task_categories: | |
| - text-classification | |
| task_ids: | |
| - sentiment-classification | |
| pretty_name: Khmer Emotional Text Dataset | |
| size_categories: | |
| - 10K<n<100K | |
| # Khmer Emotional Text Dataset π°π | |
| ## Overview | |
| **Khmer Emotional Text Dataset** is a public dataset for emotion classification in the Khmer language. | |
| The dataset contains short and medium-length Khmer texts labeled with one emotional category. It is designed for training and evaluating Natural Language Processing (NLP) models such as: | |
| - Sentiment Analysis | |
| - Emotion Classification | |
| - Text Classification | |
| - Transformer Fine-tuning | |
| - Large Language Models (LLMs) | |
| --- | |
| ## Dataset Structure | |
| Each sample contains three fields: | |
| | Column | Type | Description | | |
| |---------|------|-------------| | |
| | id | int | Unique sample ID | | |
| | text | string | Khmer text | | |
| | label | string | Emotion label | | |
| Example: | |
| ```json | |
| { | |
| "id": 1, | |
| "text": "αααα»ααααααΆαα α·αααααΆαααααααααααΆααα½ααα»ααααα½ααΆαα", | |
| "label": "happy" | |
| } | |
| ``` | |
| --- | |
| ## Labels | |
| The dataset contains the following emotion classes: | |
| - happy | |
| - sad | |
| - angry | |
| - fear | |
| - stress | |
| - surprise | |
| - neutral | |
| --- | |
| ## Usage | |
| ```python | |
| from datasets import load_dataset | |
| dataset = load_dataset("phonsobon/Text_Emotional_kh") | |
| print(dataset) | |
| ``` | |
| Example: | |
| ```python | |
| print(dataset["train"][0]) | |
| ``` | |
| --- | |
| ## Applications | |
| This dataset can be used for: | |
| - Emotion Classification | |
| - Sentiment Analysis | |
| - NLP Research | |
| - Fine-tuning BERT | |
| - XLM-RoBERTa | |
| - mBERT | |
| - Llama | |
| - Gemma | |
| - Qwen | |
| - Khmer NLP | |
| --- | |
| ## Language | |
| Khmer (km) | |
| --- | |
| ## License | |
| Apache License 2.0 | |
| --- | |
| ## Citation | |
| ```bibtex | |
| @dataset{phon2026khmeremotion, | |
| author = {Phon, Sobon}, | |
| title = {Khmer Emotional Text Dataset}, | |
| year = {2026}, | |
| publisher = {Hugging Face}, | |
| url = {https://huggingface.co/datasets/phonsobon/Text_Emotional_kh} | |
| } | |
| ``` | |
| --- | |
| ## Author | |
| **Sobon Phon** | |
| GitHub: https://github.com/phonsobon | |
| Hugging Face: https://huggingface.co/phonsobon | |