imvladikon commited on
Commit
db3bab2
1 Parent(s): dea82da

Update hebrew_news.py

Browse files
Files changed (1) hide show
  1. hebrew_news.py +1 -0
hebrew_news.py CHANGED
@@ -68,6 +68,7 @@ class HebrewNews(datasets.GeneratorBasedBuilder):
68
  with open(filepath, encoding="utf-8") as f:
69
  fieldnames = ["articleBody", "description", "headline", "title"]
70
  reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
 
71
  for idx, row in enumerate(reader):
72
  yield idx, {
73
  "id": idx,
 
68
  with open(filepath, encoding="utf-8") as f:
69
  fieldnames = ["articleBody", "description", "headline", "title"]
70
  reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
71
+ next(reader)
72
  for idx, row in enumerate(reader):
73
  yield idx, {
74
  "id": idx,