ekojs commited on
Commit
b89b73b
·
1 Parent(s): 5db9fd9

Upload cscomm.py

Browse files
Files changed (1) hide show
  1. cscomm.py +2 -2
cscomm.py CHANGED
@@ -122,8 +122,8 @@ class CSCOMM(datasets.GeneratorBasedBuilder):
122
  def _generate_examples(self, data_file, split):
123
  df = pd.read_csv(data_file)
124
  for i, row in enumerate(df.itertuples()):
125
- example = {"idx": i, "round_id": row.round_id, "source": row.source}
126
  if not self.config.pretraining:
127
  example["commentary"] = row.commentary
128
 
129
- yield example["idx"], example
 
122
  def _generate_examples(self, data_file, split):
123
  df = pd.read_csv(data_file)
124
  for i, row in enumerate(df.itertuples()):
125
+ example = {"round_id": row.round_id, "source": row.source}
126
  if not self.config.pretraining:
127
  example["commentary"] = row.commentary
128
 
129
+ yield i, example