parser / udpipe2 /models-2.6 /eval_all.sh
anasampa2's picture
Upload 151 files
ee0ec3d verified
raw
history blame
417 Bytes
#!/bin/sh
sh models_list.sh | while read names path treebank ack; do
model=${names%%:*}
for mode in "raw_text" "gold_tok"; do
conllu=../ud-2.6/$treebank/$treebank-ud-test.conllu
case $mode in
raw_text) txt=${conllu%.conllu}.txt;;
*) txt=;
esac
echo $model $mode $(bash ../scripts/eval_via_server.sh $model $conllu $txt | tail -n+3 | awk 'BEGIN{ORS=" "}{print $1 ":" $7}')
done
done