Update labels.py
Browse files
labels.py
CHANGED
|
@@ -61,7 +61,7 @@ class AGNews(datasets.GeneratorBasedBuilder):
|
|
| 61 |
features=datasets.Features(
|
| 62 |
{
|
| 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",
|
|
|
|
| 61 |
features=datasets.Features(
|
| 62 |
{
|
| 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",
|