File size: 1,119 Bytes
b456c5e
 
 
 
 
f95caed
 
 
 
 
 
 
 
 
b456c5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f95caed
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
---
license: apache-2.0
language:
- fa
pretty_name: persian
task_categories:
- text-classification
tags:
- 'persian '
- persian dataset
- sentiment
- persian sentiment
size_categories:
- 10K<n<100K
---

# Sentiment Analysis Dataset

## Dataset Description

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).

## Dataset Structure

### Columns

The dataset consists of the following columns:

- **text**: The text content of the review or comment.
- **label**: The sentiment label associated with the text (0 for negative, 1 for positive).



## Usage

To load and use this dataset with the Hugging Face `datasets` library, you can use the following code:

```python
from datasets import load_dataset

# Load the dataset
dataset = load_dataset('mansoorhamidzadeh/sentiment')

# Access the train and test splits
train_dataset = dataset['train']
test_dataset = dataset['test']

# Example: Print the first sample
print(train_dataset[0])