balance.pl

- NAME
- SYNOPSIS
- USGAE
- INPUT

- Required Arguments:

- DATA
- N

- Optional Arguments:

- Other Options :

- -help
- -version

- OUTPUT
- BUGS
- AUTHOR
- COPYRIGHT

# NAME

balance.pl

# SYNOPSIS

Chooses exactly given number of instances of each sense from a given Senseval-2 file.

# USGAE

balance.pl [OPTIONS] DATA N

# INPUT

## Required Arguments:

#### DATA

balance.pl accepts a Senseval-2 data file.

#### N

Specifies the number of instances to be selected from each sense.

## Optional Arguments:

--count COUNT

Balances the COUNT file created by SenseTool's preprocess.pl along with the DATA file. COUNT file is balanced such that it stays consistent with the new balanced DATA file and contains only those instances left after balancing, in the same order as they appear in the output.

Balanced COUNT is written to file COUNT.balanced and every ith line in COUNT.balanced is instance data within <context> and </context> tags for the ith instance in the output of balance.

### Other Options :

#### --help

Displays this message.

#### --version

Displays the version information.

# OUTPUT

Output is a sense balanced Senseval-2 file and is displayed to stdout. Output will show exactly N instances of each sense that has atleast N instances. All senses in the output Senseval-2 will have equal number of instances meaning the senses will be equally distributed.

# BUGS

output of balance.pl will have un-balanced distribution of senses when some of the instances have multiple sense tags in the given DATA file.

# AUTHOR

     Amruta Purandare, Ted Pedersen.
     University of Minnesota, Duluth.

# COPYRIGHT

Copyright (c) 2002-2005,

Amruta Purandare, University of Pittsburgh. amruta@cs.pitt.edu

Ted Pedersen, University of Minnesota, Duluth. tpederse@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.