Commit ·
97637a1
1
Parent(s): 85c9bb4
Update mind.py
Browse files
mind.py
CHANGED
|
@@ -5,10 +5,7 @@ from datasets.tasks import TextClassification
|
|
| 5 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/train.csv"
|
| 6 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/test.csv"
|
| 7 |
|
| 8 |
-
|
| 9 |
class mind(datasets.GeneratorBasedBuilder):
|
| 10 |
-
"""AG News topic classification dataset."""
|
| 11 |
-
|
| 12 |
def _info(self):
|
| 13 |
return datasets.DatasetInfo(
|
| 14 |
description="MIND",
|
|
@@ -18,8 +15,6 @@ class mind(datasets.GeneratorBasedBuilder):
|
|
| 18 |
"label": datasets.features.ClassLabel(names=['foodanddrink', 'games', 'lifestyle', 'weather', 'kids', 'entertainment', 'middleeast', 'news', 'autos', 'video', 'travel', 'music', 'northamerica', 'movies', 'finance', 'health', 'sports', 'tv']),
|
| 19 |
}
|
| 20 |
),
|
| 21 |
-
homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
|
| 22 |
-
citation="",
|
| 23 |
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 24 |
)
|
| 25 |
|
|
|
|
| 5 |
_TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/train.csv"
|
| 6 |
_TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/linxinyuan/mind/resolve/main/test.csv"
|
| 7 |
|
|
|
|
| 8 |
class mind(datasets.GeneratorBasedBuilder):
|
|
|
|
|
|
|
| 9 |
def _info(self):
|
| 10 |
return datasets.DatasetInfo(
|
| 11 |
description="MIND",
|
|
|
|
| 15 |
"label": datasets.features.ClassLabel(names=['foodanddrink', 'games', 'lifestyle', 'weather', 'kids', 'entertainment', 'middleeast', 'news', 'autos', 'video', 'travel', 'music', 'northamerica', 'movies', 'finance', 'health', 'sports', 'tv']),
|
| 16 |
}
|
| 17 |
),
|
|
|
|
|
|
|
| 18 |
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 19 |
)
|
| 20 |
|