KinoSearch::Analysis::Stemmer - Reduce related words to a shared root.


KinoSearch documentation  | view source Contained in the KinoSearch distribution.

Index


NAME

Top

KinoSearch::Analysis::Stemmer - Reduce related words to a shared root.

SYNOPSIS

Top

    my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'es' );

    my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
        analyzers => [ $case_folder, $tokenizer, $stemmer ],
    );

This class is a wrapper around Lingua::Stem::Snowball, so it supports the same languages.

DESCRIPTION

Top

Stemmer is an Analyzer which reduces related words to a root form (using the "Snowball" stemming library). For instance, "horse", "horses", and "horsing" all become "hors" -- so that a search for 'horse' will also match documents containing 'horses' and 'horsing'.

CONSTRUCTORS

Top

new( [labeled params] )

    my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'es' );

INHERITANCE

Top

KinoSearch::Analysis::Stemmer isa KinoSearch::Analysis::Analyzer isa KinoSearch::Object::Obj.

COPYRIGHT AND LICENSE

Top


KinoSearch documentation  | view source Contained in the KinoSearch distribution.