This page provide more information to help you evaluate the tagger output in Homework 2. Here is a perl program that can be used to compute the confusion matrices and kappa for the tagger.
compare-taggers.pl chmod ugo+x
compare-taggers.plwhich perl)
The basic syntax for compare-taggers.pl is as follows:
./compare-taggers.pl (-b|-h) (-m) (-k) tagger-output gold-standardThe parameters are as follows:
To print the confusion matrix and kappa for the tagged file
wsj_1975.brill, tagged by the Brill tagger, and save the
matrix and kappa in the file wsj_1975.results:
./compare-taggers.pl -b -m -k wsj_1975.brill wsj_1975.pos > wsj_1975.results
compare-taggers.pl -- it relies on the
formatting being the same in the tagged and gold-standard files. all.raw and all.pos, which contain
all of the texts in one big file.