WordNet::stem - Module that find the stem of a word or the stems of a


WordNet-Similarity documentation  | view source Contained in the WordNet-Similarity distribution.

Index


NAME

Top

WordNet::stem - Module that find the stem of a word or the stems of a string of words, using WordNet.

SYNOPSIS

Top

  use WordNet::stem;

  my $wn = WordNet::QueryData->new();

  my $stemmer = WordNet::stem->new($wn)

  my @stems = $stemmer->stemWord($word);

  my $string = $stemmer->stemString($inString, $cache);

DESCRIPTION

Top

This module uses the internal stemming algorithm of WordNet to stem words and strings of words. This module is used by the lesk measure of the WordNet::Similarity package.

Methods

new

Creates a new stemmer object and initilizes it with a WordNet::QueryData object.

Parameters: $wn

Returns: $stemmer

stemString

Takes a string of words as input and returns a string of stemmed words.

Parameters: $inString

Returns: $retString

stemWord

Takes a word as input and returns its stems. A word may have more than one stem. All are returned.

Parameters: $word

Returns: @stems

SEE ALSO

Top

perl(1), WordNet::Similarity(3), WordNet::QueryData(3)

http://www.cs.utah.edu/~sidd

http://wordnet.princeton.edu

http://www.ai.mit.edu/~jrennie/WordNet

http://groups.yahoo.com/group/wn-similarity

AUTHORS

Top

 Ted Pedersen, University of Minnesota Duluth
 tpederse at d.umn.edu

 Satanjeev Banerjee, Carnegie Mellon University, Pittsburgh
 banerjee+ at cs.cmu.edu

BUGS

Top

None.

To report bugs, go to http://groups.yahoo.com/group/wn-similarity/ or e-mail "tpederse at d.umn.edu".

COPYRIGHT AND LICENSE

Top


WordNet-Similarity documentation  | view source Contained in the WordNet-Similarity distribution.