Upload cscomm.py
Browse files
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 = {"
|
126 |
if not self.config.pretraining:
|
127 |
example["commentary"] = row.commentary
|
128 |
|
129 |
-
yield
|
|
|
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
|