Win and linux can run the code

This commit is contained in:
MZ YANG
2026-01-22 17:39:31 +08:00
parent c3f750cd9d
commit f37a8ce179
22 changed files with 32572 additions and 87 deletions

View File

@@ -10,7 +10,7 @@ from typing import Dict, Tuple
def load_json(path: str) -> Dict:
with open(path, "r", encoding="ascii") as f:
with open(path, "r", encoding="utf-8") as f:
return json.load(f)
@@ -106,7 +106,7 @@ def main():
"discrete_invalid_counts": disc_invalid,
}
with open(args.out, "w", encoding="ascii") as f:
with open(args.out, "w", encoding="utf-8") as f:
json.dump(report, f, indent=2)
print("eval_report", args.out)