ebrigham commited on
Commit
a1ad450
1 Parent(s): eafec65

Update labels.py

Browse files
Files changed (1) hide show
  1. labels.py +3 -13
labels.py CHANGED
@@ -48,8 +48,8 @@ _CITATION = """\
48
  }
49
  """
50
 
51
- _TRAIN_DOWNLOAD_URL = "https://github.com/edubrigham/data/blob/a43e2eb61d49a7c5f9b7856de2538dc1a7712e47/ag_news_csv/train.csv"
52
- _TEST_DOWNLOAD_URL = "https://github.com/edubrigham/data/blob/a43e2eb61d49a7c5f9b7856de2538dc1a7712e47/ag_news_csv/test.csv"
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",