cloverhxy commited on
Commit
d2b73fb
·
1 Parent(s): 37e788d

Update semi-heter.py

Browse files
Files changed (1) hide show
  1. semi-heter.py +2 -2
semi-heter.py CHANGED
@@ -79,9 +79,9 @@ class semiHeter(datasets.GeneratorBasedBuilder):
79
  elif split in ['target']:
80
  with open(path_file, "r") as f:
81
  file = json.load(f)
82
- for x in file:
83
  yield i, {
84
- "content": x
85
  }
86
  else:
87
  file = pd.read_csv(path_file)
 
79
  elif split in ['target']:
80
  with open(path_file, "r") as f:
81
  file = json.load(f)
82
+ for i in range(len(file)):
83
  yield i, {
84
+ "content": i
85
  }
86
  else:
87
  file = pd.read_csv(path_file)