Seymasa commited on
Commit
ec38e0b
·
verified ·
1 Parent(s): dbb7628

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +131 -3
README.md CHANGED
@@ -1,3 +1,131 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # Complaint Classification Dataset
6
+
7
+ 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.
8
+
9
+ ## Overview
10
+
11
+ 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.
12
+
13
+ ## Dataset Details
14
+
15
+ - **Dataset Name:** `complaint-classification-dataset`
16
+ - **Creator:** `nanelimon`
17
+ - **Hugging Face URL:** [Complaint Classification Dataset](https://huggingface.co/datasets/nanelimon/complaint-classification-dataset)
18
+
19
+ ### Data Sources
20
+
21
+ - **Trendyol:** A major e-commerce platform in Turkey.
22
+ - **Şikayetvar:** A popular complaint and review platform in Turkey.
23
+
24
+ ### Features
25
+
26
+ The dataset includes the following features:
27
+
28
+ - **text:** The complaint text that needs to be classified.
29
+ - **label:** The classification label assigned to the complaint text.
30
+
31
+ ### Data Format
32
+
33
+ The dataset is available in CSV format. Each row contains:
34
+
35
+ - **text:** The text of the complaint.
36
+ - **label:** The category label.
37
+
38
+ Example:
39
+
40
+ | text | category |
41
+ |-----------------------------------------|------------------|
42
+ | rezalet bir ürün | 1 |
43
+ | bayıldım mükemmel | 0 |
44
+
45
+ ## Getting Started
46
+
47
+ To use this dataset in your project, follow these steps:
48
+
49
+ ### Using the Dataset with Hugging Face Datasets Library
50
+
51
+ 1. **Install the Datasets Library**
52
+
53
+ If you haven’t already, install the `datasets` library from Hugging Face:
54
+
55
+ ```bash
56
+ pip install datasets
57
+ ```
58
+
59
+ 2. **Load the Dataset**
60
+
61
+ Use the following code to load the dataset:
62
+
63
+ ```python
64
+ from datasets import load_dataset
65
+
66
+ dataset = load_dataset("nanelimon/complaint-classification-dataset")
67
+ ```
68
+
69
+ 3. **Access Dataset Splits**
70
+
71
+ The dataset is available in the following splits:
72
+
73
+ - `train`
74
+ - `test`
75
+
76
+ You can access these splits as follows:
77
+
78
+ ```python
79
+ train_dataset = dataset["train"]
80
+ test_dataset = dataset["test"]
81
+ ```
82
+
83
+ 4. **Explore the Dataset**
84
+
85
+ To inspect the data, you can use:
86
+
87
+ ```python
88
+ print(train_dataset[0])
89
+ ```
90
+
91
+ ## Usage Examples
92
+
93
+ ### Text Classification
94
+
95
+ Here's a simple example of how to use this dataset for text classification:
96
+
97
+ ```python
98
+ from transformers import pipeline
99
+
100
+ # Load the dataset
101
+ from datasets import load_dataset
102
+ dataset = load_dataset("nanelimon/complaint-classification-dataset")
103
+
104
+ # Initialize a text classification pipeline
105
+ classifier = pipeline("text-classification")
106
+
107
+ # Sample text for classification
108
+ text = "The product arrived damaged."
109
+
110
+ # Perform classification
111
+ result = classifier(text)
112
+ print(result)
113
+ ```
114
+
115
+ ## License
116
+
117
+ 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.
118
+
119
+ ## Contributing
120
+
121
+ If you have suggestions or improvements, please feel free to open an issue or submit a pull request. Contributions are always welcome!
122
+
123
+ ## Contact
124
+
125
+ For any questions or further information, you can reach out to the dataset creator:
126
+
127
+ [Şeyma SARIGİL](https://www.linkedin.com/in/seymasa/)
128
+ [Hilal TABAK](https://www.linkedin.com/in/hilal-tabak/)
129
+
130
+ - **Creator:** [nanelimon](https://huggingface.co/nanelimon)
131
+ - **Hugging Face Profile:** [nanelimon](https://huggingface.co/nanelimon)