2019-04-26 13:54:15 +02:00
|
|
|
awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt
|
|
|
|
awk -f get_3rd.awk < wikiniews_results.tsv > references.txt
|
|
|
|
awk -f txt_to_tsr_converter.awk < references.txt > references.trn
|
|
|
|
awk -f txt_to_tsr_converter.awk < hypotheses.txt > hypotheses.trn
|
2019-04-26 15:12:51 +02:00
|
|
|
sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all -p > tmp_metrics
|
|
|
|
|
2019-04-26 15:17:29 +02:00
|
|
|
python3 ./xml_parser.py
|
2019-04-26 15:12:51 +02:00
|
|
|
paste wikiniews_results.tsv WERs > wikiniews_results_with_WERs.tsv
|