davebulaval commited on
Commit
be8705c
1 Parent(s): 285603e

Update riscbac.py

Browse files
Files changed (1) hide show
  1. riscbac.py +1 -1
riscbac.py CHANGED
@@ -108,5 +108,5 @@ class RISCBAC(datasets.GeneratorBasedBuilder):
108
  def _generate_examples(self, files_dir_path, split):
109
  files = os.listdir(files_dir_path)
110
  for key, file in enumerate(files):
111
- with open(file, "r") as f:
112
  yield key, {"text": f.readlines()}
 
108
  def _generate_examples(self, files_dir_path, split):
109
  files = os.listdir(files_dir_path)
110
  for key, file in enumerate(files):
111
+ with open(os.path.join(files_dir_path, file), "r", encoding="utf-8") as f:
112
  yield key, {"text": f.readlines()}