phusroyal commited on
Commit
db6dfe1
·
1 Parent(s): 37c68cf

Update ViHOS.py

Browse files
Files changed (1) hide show
  1. ViHOS.py +4 -3
ViHOS.py CHANGED
@@ -64,9 +64,10 @@ class ViHOS(datasets.GeneratorBasedBuilder):
64
 
65
  def _generate_examples(self, filepath, split):
66
  # colnames=['id', 'Content', 'Span ids']
67
-
68
- data = self.load_csv(filepath)
69
- yield data
 
70
 
71
  # with open(filepath, 'r', encoding="utf-8") as f:
72
  # for i, line in enumerate(f):
 
64
 
65
  def _generate_examples(self, filepath, split):
66
  # colnames=['id', 'Content', 'Span ids']
67
+ with open(filepath, 'r', encoding="utf-8") as f:
68
+ for i, line in enumerate(f):
69
+ data = self.load_csv(filepath)
70
+ yield data
71
 
72
  # with open(filepath, 'r', encoding="utf-8") as f:
73
  # for i, line in enumerate(f):