GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLUCENE::ANALYSIS::PORTERSTEMFILTER (3)

.ds Aq ’

NAME

Plucene::Analysis::PorterStemFilter - Porter stemming on the token stream

CONTENTS

SYNOPSIS



        # isa Plucene::Analysis:::TokenFilter
       
        my $token = $porter_stem_filter->next;



DESCRIPTION

This class transforms the token stream as per the Porter stemming algorithm.

Note: the input to the stemming filter must already be in lower case, so you will need to use LowerCaseFilter or LowerCaseTokenizer farther down the Tokenizer chain in order for this to work properly!

The Porter Stemmer implements Porter Algorithm for normalization of English words by stripping their extensions and is used to generalize the searches. For example, the Porter algorithm maps both ’search’ and ’searching’ (as well as ’searchnessing’) to ’search’ such that a query for ’search’ will also match documents that contains the word ’searching’.

Note that the Porter algorithm is specific to the English language and may give unpredictable results for other languages. Also, make sure to use the same analyzer during the indexing and the searching.

You can find more information on the Porter algorithm at www.tartarus.org/~martin/PorterStemmer.

A nice online demonstration of the Porter algorithm is available at www.scs.carleton.ca/~dquesnel/java/stuff/PorterApplet.html.

METHODS

    next



        my $token = $porter_stem_filter->next;



Returns the next input token, after being stemmed.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLUCENE::ANALYSIS::PORTERSTEMFILTER (3) 2005-09-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.