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

Update hebrew_news.py

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