Commit
•
2b214f0
1
Parent(s):
a35f85a
wip
Browse files- test_dataset.py +1 -0
test_dataset.py
CHANGED
@@ -98,6 +98,7 @@ class TestDatasetEvals(datasets.GeneratorBasedBuilder):
|
|
98 |
with open(data_file, encoding="utf8") as f:
|
99 |
for n, row in enumerate(f):
|
100 |
data = json.loads(row)
|
|
|
101 |
example = {feat: data[col] for feat, col in self.config.text_features.items()}
|
102 |
example["idx"] = n
|
103 |
yield example["idx"], example
|
|
|
98 |
with open(data_file, encoding="utf8") as f:
|
99 |
for n, row in enumerate(f):
|
100 |
data = json.loads(row)
|
101 |
+
print(data)
|
102 |
example = {feat: data[col] for feat, col in self.config.text_features.items()}
|
103 |
example["idx"] = n
|
104 |
yield example["idx"], example
|