metryki
This commit is contained in:
parent
eb749b70d3
commit
25afe5e0c1
2
CreateMetricFiles.py
Normal file
2
CreateMetricFiles.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
file = open("sclite.txt", "r")
|
||||||
|
print(file.read())
|
12
lines.sh
12
lines.sh
@ -1 +1,11 @@
|
|||||||
wc -l wikiniews_results.tsv > lines_number.txt
|
wc -l wikiniews_results.tsv > lines_number.txt
|
||||||
|
|
||||||
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
|
||||||
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
|
||||||
|
|
||||||
|
cut -f3 wikiniews_results.tsv > reference.txt
|
||||||
|
cut -f2 wikiniews_results.tsv > hypothesis.txt
|
||||||
|
|
||||||
|
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > sclite.txt
|
||||||
|
|
||||||
|
python ./createMetricFiles.py
|
Loading…
Reference in New Issue
Block a user