From 04f99c3cac03b42240bdb3b99596328e23b7c14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99?= Date: Tue, 5 Dec 2023 15:08:18 +0100 Subject: [PATCH] add a flag that gives a more detailed breakdown --- ASR_NL_benchmark/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASR_NL_benchmark/pipeline.py b/ASR_NL_benchmark/pipeline.py index 5b1fbc0..33145d7 100644 --- a/ASR_NL_benchmark/pipeline.py +++ b/ASR_NL_benchmark/pipeline.py @@ -58,7 +58,7 @@ def run_pipeline(hypfile, reffile, skip_ref_norm, skip_hyp_norm): run = os.system( f"csrfilt.sh -s -i stm {os.path.join('ASR_NL_benchmark','variations.glm')} < {reffile.normalized_path} > {reffile.variation_path}") run = os.system( - f"sclite -D -h {hypfile.variation_path} {hypfile.extension} -r {reffile.variation_path} {reffile.extension} -O {os.path.join(os.path.sep,'input','results')} -o dtl spk") + f"sclite -D -h {hypfile.variation_path} {hypfile.extension} -r {reffile.variation_path} {reffile.extension} -m hyp -O {os.path.join(os.path.sep,'input','results')} -o prf dtl spk") def calculate_wer(df): """ Calculates the word error rate and adds the collumn 'product' to the dataframe