Skip to content
Snippets Groups Projects
Commit bb22cd50 authored by bys0318's avatar bys0318
Browse files

fix Chinese output

parent e4424fdb
No related branches found
No related tags found
No related merge requests found
......@@ -57,5 +57,5 @@ if __name__ == '__main__':
preds = get_pred(model, tokenizer, data, max_length, max_gen, prompt_format, dataset, device)
with open(f"pred/{dataset}.jsonl", "w") as f:
for pred in preds:
json.dump(pred, f)
json.dump(pred, f, ensure_ascii=False)
f.write('\n')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment