Skip to content

Commit

Permalink
[egs] use bash to run sed instead of the sed shebang (kaldi-asr#4075)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan 'Yenda' Trmal <jtrmal@apptek.com>
  • Loading branch information
jtrmal and jtrmal committed May 17, 2020
1 parent abaf3ac commit da93074
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 9 deletions.
4 changes: 3 additions & 1 deletion egs/fame/s5/local/wer_hyp_filter
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<UNK>::g
'
4 changes: 3 additions & 1 deletion egs/fame/s5/local/wer_output_filter
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<UNK>::g
'
4 changes: 3 additions & 1 deletion egs/fame/s5/local/wer_ref_filter
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<UNK>::g
'
4 changes: 3 additions & 1 deletion egs/fisher_callhome_spanish/s5/local/wer_output_filter
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:\[laughter\]::g
s:\[noise\]::g
s:\[oov\]::g
s:<UNK>::g
'
4 changes: 3 additions & 1 deletion egs/gale_arabic/s5c/local/wer_output_filter
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s/@@ //g
s/<sil>//g
s/<UNK>//g
'
4 changes: 3 additions & 1 deletion egs/wsj/s5/local/wer_hyp_filter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<NOISE>::g
s:<SPOKEN_NOISE>::g
s:<UNK>::g
Expand All @@ -8,4 +9,5 @@ s/-HOLDER/HOLDER/g
s/COMPAIGN/CAMPAIGN/g
s/APPROACHES-/APPROACHES/g
s/RESEACHERS/RESEARCHERS/g
'

5 changes: 3 additions & 2 deletions egs/wsj/s5/local/wer_output_filter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<NOISE>::g
s:<SPOKEN_NOISE>::g
s:<UNK>::g
Expand All @@ -8,4 +9,4 @@ s/-HOLDER/HOLDER/g
s/COMPAIGN/CAMPAIGN/g
s/APPROACHES-/APPROACHES/g
s/RESEACHERS/RESEARCHERS/g

'
4 changes: 3 additions & 1 deletion egs/wsj/s5/local/wer_ref_filter
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sed -f
#!/usr/bin/env bash
sed '
s:<NOISE>::g
s:<SPOKEN_NOISE>::g
s:<UNK>::g
Expand All @@ -8,4 +9,5 @@ s/-HOLDER/HOLDER/g
s/COMPAIGN/CAMPAIGN/g
s/APPROACHES-/APPROACHES/g
s/RESEACHERS/RESEARCHERS/g
'

0 comments on commit da93074

Please sign in to comment.