marinone94
commited on
Commit
·
14d27e0
1
Parent(s):
a9cc788
adjust script
Browse files- eval.py +1 -1
- join_datasets_asr_ctc_run.sh +1 -1
eval.py
CHANGED
@@ -23,7 +23,7 @@ def log_results(result: Dataset, args: Dict[str, str]):
|
|
23 |
cer_result = cer.compute(references=result["target"], predictions=result["prediction"])
|
24 |
|
25 |
# print & log results
|
26 |
-
result_str = f"WER: {wer_result}\
|
27 |
print(result_str)
|
28 |
|
29 |
with open(f"{dataset_id}_eval_results.txt", "w") as f:
|
|
|
23 |
cer_result = cer.compute(references=result["target"], predictions=result["prediction"])
|
24 |
|
25 |
# print & log results
|
26 |
+
result_str = f"WER: {wer_result}\nCER: {cer_result}"
|
27 |
print(result_str)
|
28 |
|
29 |
with open(f"{dataset_id}_eval_results.txt", "w") as f:
|
join_datasets_asr_ctc_run.sh
CHANGED
@@ -32,7 +32,7 @@ python old_run_asr_ctc.py \
|
|
32 |
--mask_feature_length="64" \
|
33 |
--gradient_checkpointing \
|
34 |
--use_auth_token \
|
35 |
-
--
|
36 |
--group_by_length \
|
37 |
--do_train --do_eval \
|
38 |
--push_to_hub
|
|
|
32 |
--mask_feature_length="64" \
|
33 |
--gradient_checkpointing \
|
34 |
--use_auth_token \
|
35 |
+
--preprocessing_only \
|
36 |
--group_by_length \
|
37 |
--do_train --do_eval \
|
38 |
--push_to_hub
|