Update labels.py
Browse files
labels.py
CHANGED
|
@@ -63,10 +63,7 @@ class AGNews(datasets.GeneratorBasedBuilder):
|
|
| 63 |
"text": datasets.Value("string"),
|
| 64 |
"label": datasets.features.ClassLabel(names=["Society & Culture", "Science & Mathematics", "Health", "Education & Reference", "Computers & Internet", "Sports", "Business & Finance", "Entertainment & Music", "Family & Relationships", "Politics & Government"]),
|
| 65 |
}
|
| 66 |
-
)
|
| 67 |
-
homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
|
| 68 |
-
citation=_CITATION,
|
| 69 |
-
task_templates=[TextClassification(text_column="text", label_column="label")],
|
| 70 |
)
|
| 71 |
|
| 72 |
def _split_generators(self, dl_manager):
|
|
|
|
| 63 |
"text": datasets.Value("string"),
|
| 64 |
"label": datasets.features.ClassLabel(names=["Society & Culture", "Science & Mathematics", "Health", "Education & Reference", "Computers & Internet", "Sports", "Business & Finance", "Entertainment & Music", "Family & Relationships", "Politics & Government"]),
|
| 65 |
}
|
| 66 |
+
)
|
|
|
|
|
|
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
def _split_generators(self, dl_manager):
|