Datasets:
Rename sentiment_digikala_snappfood.py to sentiment_dksf.py
Browse files
sentiment_digikala_snappfood.py → sentiment_dksf.py
RENAMED
|
@@ -9,12 +9,12 @@ Sentiment analysis dataset extracted and labeled from Digikala and Snapp Food co
|
|
| 9 |
|
| 10 |
_DOWNLOAD_URLS = {
|
| 11 |
|
| 12 |
-
"train": "https://huggingface.co/datasets/hezarai/sentiment-
|
| 13 |
-
"test": "https://huggingface.co/datasets/hezarai/sentiment-
|
| 14 |
}
|
| 15 |
|
| 16 |
|
| 17 |
-
class
|
| 18 |
"""Sentiment analysis on Digikala/SnappFood comments"""
|
| 19 |
|
| 20 |
def _info(self):
|
|
@@ -24,7 +24,7 @@ class SentimentDigikalaSnappfood(datasets.GeneratorBasedBuilder):
|
|
| 24 |
{"text": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["negative", "positive", "neutral"])}
|
| 25 |
),
|
| 26 |
supervised_keys=None,
|
| 27 |
-
homepage="https://huggingface.co/datasets/hezar-ai/
|
| 28 |
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 29 |
)
|
| 30 |
|
|
|
|
| 9 |
|
| 10 |
_DOWNLOAD_URLS = {
|
| 11 |
|
| 12 |
+
"train": "https://huggingface.co/datasets/hezarai/sentiment-dksf/raw/main/sentiment_dksf_train.csv",
|
| 13 |
+
"test": "https://huggingface.co/datasets/hezarai/sentiment-dksf/raw/main/sentiment_dksf_test.csv"
|
| 14 |
}
|
| 15 |
|
| 16 |
|
| 17 |
+
class SentimentDKSF(datasets.GeneratorBasedBuilder):
|
| 18 |
"""Sentiment analysis on Digikala/SnappFood comments"""
|
| 19 |
|
| 20 |
def _info(self):
|
|
|
|
| 24 |
{"text": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["negative", "positive", "neutral"])}
|
| 25 |
),
|
| 26 |
supervised_keys=None,
|
| 27 |
+
homepage="https://huggingface.co/datasets/hezar-ai/sentiment-dksf",
|
| 28 |
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 29 |
)
|
| 30 |
|