Update labels.py
Browse files
labels.py
CHANGED
@@ -48,8 +48,8 @@ _CITATION = """\
|
|
48 |
}
|
49 |
"""
|
50 |
|
51 |
-
_TRAIN_DOWNLOAD_URL = "https://
|
52 |
-
_TEST_DOWNLOAD_URL = "https://
|
53 |
|
54 |
|
55 |
class AGNews(datasets.GeneratorBasedBuilder):
|
@@ -61,17 +61,7 @@ class AGNews(datasets.GeneratorBasedBuilder):
|
|
61 |
features=datasets.Features(
|
62 |
{
|
63 |
"text": datasets.Value("string"),
|
64 |
-
"label": datasets.features.ClassLabel(names=[
|
65 |
-
"Society & Culture",
|
66 |
-
"Science & Mathematics",
|
67 |
-
"Health",
|
68 |
-
"Education & Reference",
|
69 |
-
"Computers & Internet",
|
70 |
-
"Sports",
|
71 |
-
"Business & Finance",
|
72 |
-
"Entertainment & Music",
|
73 |
-
"Family & Relationships",
|
74 |
-
"Politics & Government"]),
|
75 |
}
|
76 |
),
|
77 |
homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
|
|
|
48 |
}
|
49 |
"""
|
50 |
|
51 |
+
_TRAIN_DOWNLOAD_URL = "https://raw.githubusercontent.com/mhjabreel/CharCnn_Keras/master/data/ag_news_csv/train.csv"
|
52 |
+
_TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/mhjabreel/CharCnn_Keras/master/data/ag_news_csv/test.csv"
|
53 |
|
54 |
|
55 |
class AGNews(datasets.GeneratorBasedBuilder):
|
|
|
61 |
features=datasets.Features(
|
62 |
{
|
63 |
"text": datasets.Value("string"),
|
64 |
+
"label": datasets.features.ClassLabel(names=["World", "Sports", "Business", "Sci/Tech"]),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
),
|
67 |
homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
|