File size: 3,425 Bytes
ec38e0b
 
a186126
 
 
 
 
 
ec38e0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d9bfa9d
ec38e0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a186126
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
112
113
114
115
116
---
license: apache-2.0
task_categories:
- text-classification
language:
- tr
size_categories:
- 1K<n<10K
---

# Complaint Classification Dataset

Welcome to the `complaint-classification-dataset`! This dataset is designed for the classification of text complaints into various categories. It is hosted on Hugging Face and is ideal for training machine learning models to categorize textual complaints.

## Overview

This dataset contains text complaints and their associated categories, sourced from Trendyol and Şikayetvar, popular platforms for online shopping and consumer complaints in Turkey. It is a valuable resource for natural language processing (NLP) tasks, specifically for text classification and sentiment analysis.

## Dataset Details

- **Dataset Name:** `complaint-classification-dataset`
- **Creator:** `nanelimon`
- **Hugging Face URL:** [Complaint Classification Dataset](https://huggingface.co/datasets/nanelimon/complaint-classification-dataset)

### Data Sources

- **Trendyol:** A major e-commerce platform in Turkey.
- **Şikayetvar:** A popular complaint and review platform in Turkey.

### Features

The dataset includes the following features:

- **text:** The complaint text that needs to be classified.
- **label:** The classification label assigned to the complaint text.

### Data Format

The dataset is available in CSV format. Each row contains:

- **text:** The text of the complaint.
- **label:** The category label.

Example:

| text                                    | category         |
|-----------------------------------------|------------------|
| rezalet bir ürün            | 1    |
| bayıldım mükemmel      | 0  |

## Getting Started

To use this dataset in your project, follow these steps:

### Using the Dataset with Hugging Face Datasets Library

1. **Install the Datasets Library**

   If you haven’t already, install the `datasets` library from Hugging Face:

   ```bash
   pip install datasets
   ```

2. **Load the Dataset**

   Use the following code to load the dataset:

   ```python
   from datasets import load_dataset

   dataset = load_dataset("nanelimon/complaint-classification-dataset")
   ```


## Usage Examples

### Text Classification

Here's a simple example of how to use this dataset for text classification:

```python
from transformers import pipeline

# Load the dataset
from datasets import load_dataset
dataset = load_dataset("nanelimon/complaint-classification-dataset")

# Initialize a text classification pipeline
classifier = pipeline("text-classification")

# Sample text for classification
text = "Ürün hasarlı olarak elime ulaştı."

# Perform classification
result = classifier(text)
print(result)
```

## License

The dataset is provided under the [license specified by the creator](https://huggingface.co/datasets/nanelimon/complaint-classification-dataset). Please refer to the dataset card on Hugging Face for more details.

## Contributing

If you have suggestions or improvements, please feel free to open an issue or submit a pull request. Contributions are always welcome!

## Contact

For any questions or further information, you can reach out to the dataset creator:

[Şeyma SARIGİL](https://www.linkedin.com/in/seymasa/)
[Hilal TABAK](https://www.linkedin.com/in/hilal-tabak/) 

- **Creator:** [nanelimon](https://huggingface.co/nanelimon)
- **Hugging Face Profile:** [nanelimon](https://huggingface.co/nanelimon)