Hugo Abonizio commited on
Commit
aff028d
1 Parent(s): dfcfe75
Files changed (3) hide show
  1. ag_news_pt.py +2 -2
  2. test.csv +2 -2
  3. train.csv +2 -2
ag_news_pt.py CHANGED
@@ -62,12 +62,12 @@ class AGNews(datasets.GeneratorBasedBuilder):
62
  features=datasets.Features(
63
  {
64
  "text": datasets.Value("string"),
 
65
  "label": datasets.features.ClassLabel(names=["Mundo", "Esportes", "Negócios", "Tecnologia"]),
66
  }
67
  ),
68
  homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
69
  citation=_CITATION,
70
- task_templates=[TextClassification(text_column="text", label_column="label")],
71
  )
72
 
73
  def _split_generators(self, dl_manager):
@@ -92,4 +92,4 @@ class AGNews(datasets.GeneratorBasedBuilder):
92
  # ['World', 'Sports', 'Business', 'Sci/Tech']
93
  # Re-map to [0, 1, 2, 3].
94
  label = int(label) - 1
95
- yield id_, {"text": f"{title} {text}", "label": label}
 
62
  features=datasets.Features(
63
  {
64
  "text": datasets.Value("string"),
65
+ "title": datasets.Value("string"),
66
  "label": datasets.features.ClassLabel(names=["Mundo", "Esportes", "Negócios", "Tecnologia"]),
67
  }
68
  ),
69
  homepage="http://groups.di.unipi.it/~gulli/AG_corpus_of_news_articles.html",
70
  citation=_CITATION,
 
71
  )
72
 
73
  def _split_generators(self, dl_manager):
 
92
  # ['World', 'Sports', 'Business', 'Sci/Tech']
93
  # Re-map to [0, 1, 2, 3].
94
  label = int(label) - 1
95
+ yield id_, {"text": text, "title": title, "label": label}
test.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f3077074d80e751ce50480dee6fef6e490d7ae220f11b75686a009fea054ab3e
3
- size 2025370
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ad69e4fe5fa6e52d6a478faa76d0d9b775b1859d9f5b49a274fd9c6df974ec0
3
+ size 2051453
train.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1b37b20c1e5e5da9a5e0c190efab8a6dd69959039266d53c9dc6c0c7d53e6b9b
3
- size 32051763
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aed46c3e508a4d7efd747ed36cc89297c3f65b24897ff18d3dfcfecdc265976
3
+ size 32500955