kakerukc0506
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -260,6 +260,13 @@ for dt in tqdm(datasets):
|
|
260 |
|
261 |
results.append({"task_id": dt["task_id"], "input": input, "output": prediction})
|
262 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
# トレーニング詳細
|
265 |
フレームワーク: Hugging Face Transformers
|
|
|
260 |
|
261 |
results.append({"task_id": dt["task_id"], "input": input, "output": prediction})
|
262 |
```
|
263 |
+
# jsonlで保存
|
264 |
+
```
|
265 |
+
with open(f"{new_model_id}_output.jsonl", 'w', encoding='utf-8') as f:
|
266 |
+
for result in results:
|
267 |
+
json.dump(result, f, ensure_ascii=False)
|
268 |
+
f.write('\n')
|
269 |
+
```
|
270 |
|
271 |
# トレーニング詳細
|
272 |
フレームワーク: Hugging Face Transformers
|