2020-04-03 12:38:43 +02:00
|
|
|
#!/bin/bash
|
2020-04-03 13:39:37 +02:00
|
|
|
cut -f2 -s wikiniews_results.tsv > hipotezy.txt
|
|
|
|
cut -f3 -s wikiniews_results.tsv > referencje.txt
|
|
|
|
|
|
|
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < referencje.txt > reference.trn
|
2020-04-03 13:41:25 +02:00
|
|
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hipotezy.txt > hypothesis.trn
|
2020-04-03 13:39:37 +02:00
|
|
|
|
2020-04-03 14:00:40 +02:00
|
|
|
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o snt stdout
|