KinoSearch::Analysis::Stopalizer - Suppress a "stoplist" of common words.


KinoSearch documentation  | view source Contained in the KinoSearch distribution.

Index


NAME

Top

KinoSearch::Analysis::Stopalizer - Suppress a "stoplist" of common words.

SYNOPSIS

Top

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







DESCRIPTION

Top

A "stoplist" is collection of "stopwords": words which are common enough to be of little value when determining search results. For example, so many documents in English contain "the", "if", and "maybe" that it may improve both performance and relevance to block them.

Before filtering stopwords:

    ( "i", "am", "the", "walrus" ) 

After filtering stopwords:

    ( "walrus" )

Stopalizer provides default stoplists for several languages, courtesy of the Snowball project (<http://snowball.tartarus.org>), or you may supply your own.

CONSTRUCTORS

Top

new( [labeled params] )

    my $stopalizer = KinoSearch::Analysis::Stopalizer->new(
        language => 'de',
    );

    # or...
    my $stopalizer = KinoSearch::Analysis::Stopalizer->new(
        stoplist => \%stoplist,
    );

INHERITANCE

Top

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

COPYRIGHT AND LICENSE

Top


KinoSearch documentation  | view source Contained in the KinoSearch distribution.