imvladikon commited on
Commit
36bc1a6
1 Parent(s): 2b23524

Update hebrew_news.py

Browse files
Files changed (1) hide show
  1. hebrew_news.py +2 -2
hebrew_news.py CHANGED
@@ -65,8 +65,8 @@ class HebrewNews(datasets.GeneratorBasedBuilder):
65
  ]
66
 
67
  def _generate_examples(self, archive_iter):
68
- for path, f in archive_iter:
69
- ##with open(filepath, encoding="utf-8") as f:
70
  fieldnames = ["articleBody", "description", "headline", "title"]
71
  reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
72
  next(reader)
 
65
  ]
66
 
67
  def _generate_examples(self, archive_iter):
68
+ for filepath, _ in archive_iter:
69
+ with open(filepath, encoding="utf-8") as f:
70
  fieldnames = ["articleBody", "description", "headline", "title"]
71
  reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
72
  next(reader)