kakerukc0506 commited on
Commit
79f637d
·
verified ·
1 Parent(s): 2c6d7a3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -0
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