Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
Persian
Size:
10K - 100K
License:
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- fa
|
5 |
+
pretty_name: persian
|
6 |
+
---
|
7 |
+
|
8 |
+
# Sentiment Analysis Dataset
|
9 |
+
|
10 |
+
## Dataset Description
|
11 |
+
|
12 |
+
The "mansoorhamidzadeh/sentiment" dataset is designed for sentiment analysis tasks. It contains text data labeled with sentiments, which can be used to train and evaluate models for binary sentiment classification (positive or negative).
|
13 |
+
|
14 |
+
## Dataset Structure
|
15 |
+
|
16 |
+
### Columns
|
17 |
+
|
18 |
+
The dataset consists of the following columns:
|
19 |
+
|
20 |
+
- **text**: The text content of the review or comment.
|
21 |
+
- **label**: The sentiment label associated with the text (0 for negative, 1 for positive).
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
## Usage
|
26 |
+
|
27 |
+
To load and use this dataset with the Hugging Face `datasets` library, you can use the following code:
|
28 |
+
|
29 |
+
```python
|
30 |
+
from datasets import load_dataset
|
31 |
+
|
32 |
+
# Load the dataset
|
33 |
+
dataset = load_dataset('mansoorhamidzadeh/sentiment')
|
34 |
+
|
35 |
+
# Access the train and test splits
|
36 |
+
train_dataset = dataset['train']
|
37 |
+
test_dataset = dataset['test']
|
38 |
+
|
39 |
+
# Example: Print the first sample
|
40 |
+
print(train_dataset[0])
|