Skip to content

Commit

Permalink
Merge pull request #17 from opensource-spraakherkenning-nl/sclite-add…
Browse files Browse the repository at this point in the history
…-flag

Add sclite -D flag for optional words
  • Loading branch information
greenw0lf authored Nov 17, 2023
2 parents 310f587 + 2250756 commit 8489409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASR_NL_benchmark/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -h {hypfile.variation_path} {hypfile.extension} -r {reffile.variation_path} {reffile.extension} -m hyp -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 dtl spk")

def calculate_wer(df):
""" Calculates the word error rate and adds the collumn 'product' to the dataframe
Expand Down

0 comments on commit 8489409

Please sign in to comment.