Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Update tweet_topic_single.py
Browse files- tweet_topic_single.py +2 -1
tweet_topic_single.py
CHANGED
@@ -78,13 +78,14 @@ class TweetTopicSingle(datasets.GeneratorBasedBuilder):
|
|
78 |
_key += 1
|
79 |
|
80 |
def _info(self):
|
|
|
81 |
return datasets.DatasetInfo(
|
82 |
description=_DESCRIPTION,
|
83 |
features=datasets.Features(
|
84 |
{
|
85 |
"text": datasets.Value("string"),
|
86 |
"date": datasets.Value("string"),
|
87 |
-
"label": datasets.
|
88 |
"label_name": datasets.Value("string"),
|
89 |
"id": datasets.Value("string")
|
90 |
}
|
|
|
78 |
_key += 1
|
79 |
|
80 |
def _info(self):
|
81 |
+
names = ["arts_&_culture", "business_&_entrepreneurs", "pop_culture", "daily_life", "sports_&_gaming", "science_&_technology"]
|
82 |
return datasets.DatasetInfo(
|
83 |
description=_DESCRIPTION,
|
84 |
features=datasets.Features(
|
85 |
{
|
86 |
"text": datasets.Value("string"),
|
87 |
"date": datasets.Value("string"),
|
88 |
+
"label": datasets.features.ClassLabel(names=names),
|
89 |
"label_name": datasets.Value("string"),
|
90 |
"id": datasets.Value("string")
|
91 |
}
|