Merge pull request #55 from alibaba-damo-academy/dev

fix infer_after_finetune.py
This commit is contained in:
hnluo 2023-02-01 18:35:32 +08:00 committed by GitHub
commit c1dafa8367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 13 additions and 13 deletions

View File

@ -1 +1 @@
../tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../../aishell/tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../../aishell/tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../../aishell/tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../../aishell/tranformer/utils
../transformer/utils/

View File

@ -1 +1 @@
../../aishell/tranformer/utils
../../aishell/transformer/utils

View File

@ -37,7 +37,7 @@ def modelscope_infer_after_finetune(params):
# computer CER if GT text is set
text_in = os.path.join(params["data_dir"], "text")
if text_in is not None:
if os.path.exists(text_in):
text_proc_file = os.path.join(decoding_path, "1best_recog/token")
compute_wer(text_in, text_proc_file, os.path.join(decoding_path, "text.cer"))

View File

@ -38,7 +38,7 @@ def modelscope_infer_after_finetune(params):
# computer CER if GT text is set
text_in = os.path.join(params["data_dir"], "text")
if text_in is not None:
if os.path.exists(text_in):
text_proc_file = os.path.join(decoding_path, "1best_recog/token")
compute_wer(text_in, text_proc_file, os.path.join(decoding_path, "text.cer"))

View File

@ -38,7 +38,7 @@ def modelscope_infer_after_finetune(params):
# computer CER if GT text is set
text_in = os.path.join(params["data_dir"], "text")
if text_in is not None:
if os.path.exists(text_in):
text_proc_file = os.path.join(decoding_path, "1best_recog/token")
compute_wer(text_in, text_proc_file, os.path.join(decoding_path, "text.cer"))

View File

@ -38,7 +38,7 @@ def modelscope_infer_after_finetune(params):
# computer CER if GT text is set
text_in = os.path.join(params["data_dir"], "text")
if text_in is not None:
if os.path.exists(text_in):
text_proc_file = os.path.join(decoding_path, "1best_recog/token")
compute_wer(text_in, text_proc_file, os.path.join(decoding_path, "text.cer"))

View File

@ -38,7 +38,7 @@ def modelscope_infer_after_finetune(params):
# computer CER if GT text is set
text_in = os.path.join(params["data_dir"], "text")
if text_in is not None:
if os.path.exists(text_in):
text_proc_file = os.path.join(decoding_path, "1best_recog/token")
compute_wer(text_in, text_proc_file, os.path.join(decoding_path, "text.cer"))