sval2plain.pl
Converts a given file from Senseval-2 format into plain text format. Each line of the plain text files contains a single context.
This program is from SenseClusters v0.95
sval2plain.pl [OPTIONS] SVAL2
Input file in Senseval-2 format that is to be converted into plain text format.
Prints the sense information for the target word in tags
in the output. For example:
<head item="target word" instance="instanceid" sense="sense">word</head>
NOTE: this was added by Bridget McInnes August 2007
=head3 --help
Displays the summary of command line options.
Displays the version information.
sval2plain displays the given SVAL2 file in plain text format with the contextual data of each instance on a separate line. Specifically, each i'th line displayed on STDOUT shows the context of the i'th instance in the given SVAL2 file.
BTM: Modification of this program to include the instance id and sense information for each instance. These are located with in the head tags. For example: We met in front of the <head item=``art'' instance=``art.402'' sense=``art_gallery''>art</head> gallery and Town Hall or in a park.
Ted Pedersen, University of Minnesota, Duluth
Amruta Purandare, University of Minnesota, Duluth
Bridget McInnes, University of Minnesota
Copyright (c) 2002-2007,
Ted Pedersen, University of Minnesota, Duluth. tpederse at umn.edu
Amruta Purandare, University of Pittsburgh. amruta at cs.pitt.edu
Bridget McInnes, University of Minnesota bthomson at cs.umn.edu
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.