Skip to content

Commit

Permalink
add header to macrof1 and microf1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thammegowda committed Sep 18, 2021
1 parent 591d5c1 commit 2273283
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,9 @@ zh-en,uedin-nmt.5112,33.8,53.4
zh-en,xmunmt.5160,33.5,53.8"

if [ -z $SKIP_MACROF ]; then
echo "----------------------------"
echo "Testing MacroF1 and MicroF1"
echo "----------------------------"
wmt17dir=wmt17-submitted-data/txt/system-outputs/newstest2017
echo "$MACF1_WMT17" |
# shuf | head -30 | # uncomment to run random 30 tests only
Expand Down Expand Up @@ -889,9 +892,7 @@ if [ -z $SKIP_MACROF ]; then
echo "Pass: wmt17/$pair/$name MacroF1: $macf1_got == $macf1_tru || MicroF1 $micf1_got == $micf1_tru"
let i++
done
####=============

echo "Passed $i tests."
exit 0

fi
fi
####=============
echo "Passed $i tests."
exit 0

0 comments on commit 2273283

Please sign in to comment.