Samuael A commited on
Commit
2886fcc
·
1 Parent(s): 0864a77

small closing issue fix

Browse files
Files changed (1) hide show
  1. ALFFAAmharic.py +1 -1
ALFFAAmharic.py CHANGED
@@ -112,8 +112,8 @@ class ALFFAAmharic(datasets.GeneratorBasedBuilder):
112
  def _generate_examples(self, split, data_dir):
113
  """Generate examples from ALFFAAmharic archive_path based on the test/train csv information."""
114
  file = open(f"{data_dir}/{split}/text.txt", "r", encoding="utf-8")
115
- file.close()
116
  lines = file.readlines()
 
117
  # Iterating the contents of the data to extract the relevant information
118
 
119
  for i in range(len(lines)):
 
112
  def _generate_examples(self, split, data_dir):
113
  """Generate examples from ALFFAAmharic archive_path based on the test/train csv information."""
114
  file = open(f"{data_dir}/{split}/text.txt", "r", encoding="utf-8")
 
115
  lines = file.readlines()
116
+ file.close()
117
  # Iterating the contents of the data to extract the relevant information
118
 
119
  for i in range(len(lines)):