Update eval.py
Browse files
eval.py
CHANGED
|
@@ -41,7 +41,7 @@ def log_results(result: Dataset, args: Dict[str, str]):
|
|
| 41 |
with open(f"{dataset_id}_eval_results.txt", "w") as f:
|
| 42 |
f.write(result_str)
|
| 43 |
with open(f"{dataset_id}_eval_results.tsv", "w") as f:
|
| 44 |
-
f.write("\t".join([args.model_id, args.config, args.filter, args.split, str(lm), str(wer_result), str(cer_result)]))
|
| 45 |
|
| 46 |
# log all results in text file. Possibly interesting for analysis
|
| 47 |
if log_outputs is not None:
|
|
@@ -252,4 +252,3 @@ if __name__ == "__main__":
|
|
| 252 |
args = parser.parse_args()
|
| 253 |
|
| 254 |
main(args)
|
| 255 |
-
|
|
|
|
| 41 |
with open(f"{dataset_id}_eval_results.txt", "w") as f:
|
| 42 |
f.write(result_str)
|
| 43 |
with open(f"{dataset_id}_eval_results.tsv", "w") as f:
|
| 44 |
+
f.write("\t".join([args.model_id, args.dataset, args.config, args.filter, args.split, str(lm), str(wer_result), str(cer_result)]))
|
| 45 |
|
| 46 |
# log all results in text file. Possibly interesting for analysis
|
| 47 |
if log_outputs is not None:
|
|
|
|
| 252 |
args = parser.parse_args()
|
| 253 |
|
| 254 |
main(args)
|
|
|