Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
Persian
Size:
10K - 100K
License:
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]) |