Hugo Abonizio commited on
Commit
56ae078
·
1 Parent(s): 9b49309

Fix file URL to use Git LFS

Browse files
Files changed (1) hide show
  1. ag_news_pt.py +3 -3
ag_news_pt.py CHANGED
@@ -49,8 +49,8 @@ _CITATION = """\
49
  }
50
  """
51
 
52
- _TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/hugo/ag_news_pt/raw/main/train.csv"
53
- _TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/hugo/ag_news_pt/raw/main/test.csv"
54
 
55
 
56
  class AGNews(datasets.GeneratorBasedBuilder):
@@ -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_, {"title": title, "text": text, "label": label}
 
49
  }
50
  """
51
 
52
+ _TRAIN_DOWNLOAD_URL = "https://huggingface.co/datasets/hugo/ag_news_pt/resolve/main/train.csv"
53
+ _TEST_DOWNLOAD_URL = "https://huggingface.co/datasets/hugo/ag_news_pt/resolve/main/test.csv"
54
 
55
 
56
  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}