Commit
·
6795b29
1
Parent(s):
c31e268
wip
Browse files- juggernaut/data.jsonl +1 -1
- test_dataset.py +0 -2
juggernaut/data.jsonl
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{"context":"Looks like it's just you
|
| 2 |
{"context":"There's a fine line between bravery", "continuation": "and stupidity."}
|
| 3 |
{"context":"If only I could scratch", "continuation": "my nose..."}
|
| 4 |
{"context":"Does it matter if I put this in my jug or not? Get it?", "continuation": "Jug or not?"}
|
|
|
|
| 1 |
+
{"context":"Looks like it's just you", "continuation": "and me."}
|
| 2 |
{"context":"There's a fine line between bravery", "continuation": "and stupidity."}
|
| 3 |
{"context":"If only I could scratch", "continuation": "my nose..."}
|
| 4 |
{"context":"Does it matter if I put this in my jug or not? Get it?", "continuation": "Jug or not?"}
|
test_dataset.py
CHANGED
|
@@ -98,8 +98,6 @@ class TestDatasetEvals(datasets.GeneratorBasedBuilder):
|
|
| 98 |
for n, row in enumerate(f):
|
| 99 |
data = json.loads(row)
|
| 100 |
print(data.items())
|
| 101 |
-
print(data.items())
|
| 102 |
-
print(data.items())
|
| 103 |
example = {feat: data[col] for feat, col in self.config.text_features.items()}
|
| 104 |
example["idx"] = n
|
| 105 |
yield example["idx"], example
|
|
|
|
| 98 |
for n, row in enumerate(f):
|
| 99 |
data = json.loads(row)
|
| 100 |
print(data.items())
|
|
|
|
|
|
|
| 101 |
example = {feat: data[col] for feat, col in self.config.text_features.items()}
|
| 102 |
example["idx"] = n
|
| 103 |
yield example["idx"], example
|