JeremyAlain commited on
Commit
d58ae6c
1 Parent(s): f0cd1eb

loading script created

Browse files
Files changed (1) hide show
  1. 123_test.py +1 -1
123_test.py CHANGED
@@ -135,7 +135,7 @@ class FewshotPretraining(datasets.GeneratorBasedBuilder):
135
  for i in range(data.shape[0]):
136
  row = data.iloc[i]
137
  # Yields examples as (key, example) tuples
138
- key = row["task"] + "_i"
139
  yield key, {
140
  "task": data["task"],
141
  "input": data["input"],
 
135
  for i in range(data.shape[0]):
136
  row = data.iloc[i]
137
  # Yields examples as (key, example) tuples
138
+ key = str(row["task"].iloc[i]) + "_{}".format(i)
139
  yield key, {
140
  "task": data["task"],
141
  "input": data["input"],