WER calculated

This commit is contained in:
email 2019-04-26 15:32:26 +02:00
parent 2d7eb743a0
commit f1d4cd1f2b
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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