WER calculated
This commit is contained in:
parent
2d7eb743a0
commit
f1d4cd1f2b
@ -5,7 +5,6 @@ RUN apt install -y git
|
||||
RUN apt install -y gcc
|
||||
RUN gcc --version
|
||||
RUN apt install -y build-essential
|
||||
RUN apt --assume-yes install python3.6
|
||||
RUN git clone https://github.com/usnistgov/SCTK.git
|
||||
WORKDIR SCTK
|
||||
RUN make config && make all && make check && make install && make doc
|
||||
|
@ -12,5 +12,8 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std
|
||||
cat WER_SSR.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > values.txt
|
||||
|
||||
awk '{ print ($2+$3+$4)/($2+$3+$1) }' values.txt > WER_outcomes.txt
|
||||
|
||||
paste $FILE WER_outcomes.txt > wikiniews_results2.tsv
|
||||
|
||||
awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' WER_outcomes.txt > WER_SSR_outcomes.txt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user