keyconvert.pl - Convert Senseval-2 answer key to Senseclusters format
keyconvert.pl [OPTIONS] INPUTFILE OUTFILE
Converts the Senseval formatted input key file to SenseClusters' formatted output key file required by the SenseClusters package.
The Senseval key file. The format for Senseval key file is:
TARGET_WORD INSTANCE_ID SENSE_ID+
on each line showing one or more SENSE_IDs for an INSTANCE_ID.
The file name which would have the resultant SenseClusters' formatted key file. The SenseClusters' format id:
<instance id=\"I\"\/> <sense id=\"S\"\/>+
on each line where Sense Tags S are attached to an Instance I.
This will attach Sense tag P to the Sense Tag that follow it. Otherwise the P tags are removed.
Displays the quick summary of program options.
Displays the version information.
Amruta Purandare, University of Pittsburgh Ted Pedersen, University of Minnesota, Duluth tpederse @ d.umn.edu
Copyright (c) 2002-2008, Amruta Purandare and Ted Pedersen
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to
The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
To install Text::SenseClusters, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::SenseClusters
CPAN shell
perl -MCPAN -e shell install Text::SenseClusters
For more information on module installation, please visit the detailed CPAN module installation guide.