Evaluating Tagger Output


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.

Installing the program

Running the program

The basic syntax for compare-taggers.pl is as follows:

./compare-taggers.pl (-b|-h) (-m) (-k) tagger-output gold-standard
The parameters are as follows:

tagger-output
The file containing the output from the tagger
gold-standard
The file containing the "gold standard" tags
-b
Specify that the output is from the Brill tagger
-m
Print out the confusion matrix
-k
Print out kappa

Examples

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

Notes