Commit
•
df25ee6
1
Parent(s):
2b214f0
wip
Browse files- test_dataset.py +3 -1
test_dataset.py
CHANGED
@@ -98,7 +98,9 @@ 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 |
-
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
|
|
|
98 |
with open(data_file, encoding="utf8") as f:
|
99 |
for n, row in enumerate(f):
|
100 |
data = json.loads(row)
|
101 |
+
print(data.items())
|
102 |
+
print(data.items())
|
103 |
+
print(data.items())
|
104 |
example = {feat: data[col] for feat, col in self.config.text_features.items()}
|
105 |
example["idx"] = n
|
106 |
yield example["idx"], example
|