#!/bin/csh

# collect the answers files created by ensembleByDist.pl
# produce a single file with all the sense assignments $name.scores
# move all word by word results into a directory AnswerByWord

if ($#argv != 1) then
   echo "Usage: score name "
   exit 1
endif        

set name = $1

cat *.answer.dist > $name.answers.dist

rm -fr AnswerByWord
mkdir AnswerByWord
mv *.answer.dist AnswerByWord

winnerTakeAll.pl --margin 0.05 $name.answers.dist > $name.answers
scorer.python -v $name.answers fine.key sensemap > $name.scores     

echo "score finished $name"
