Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::api::Stemmer Class Reference

A generic interface for Stemmers. More...

#include <Stemmer.hpp>

Inheritance diagram for lemur::api::Stemmer:

lemur::api::TextHandler lemur::parse::ArabicStemmer lemur::parse::KStemmer lemur::parse::PorterStemmer List of all members.

Public Member Functions

 Stemmer ()
virtual char * handleWord (char *word)
 Handle a word, possibly transforming it.

virtual char * stemWord (char *word)=0

Static Public Attributes

const string category = "stemmer"
const string identifier = "stemmer"

Detailed Description

A generic interface for Stemmers.

They must implement the TextHandler interface.


Constructor & Destructor Documentation

lemur::api::Stemmer::Stemmer  )  [inline]
 


Member Function Documentation

virtual char* lemur::api::Stemmer::handleWord char *  word  )  [inline, virtual]
 

Handle a word, possibly transforming it.

Reimplemented from lemur::api::TextHandler.

virtual char* lemur::api::Stemmer::stemWord char *  word  )  [pure virtual]
 

Stem a word. May overwrite the char * passed in.

Implemented in lemur::parse::ArabicStemmer, lemur::parse::KStemmer, and lemur::parse::PorterStemmer.


Member Data Documentation

const string lemur::api::Stemmer::category = "stemmer" [static]
 

Reimplemented from lemur::api::TextHandler.

const string lemur::api::Stemmer::identifier = "stemmer" [static]
 

Reimplemented from lemur::api::TextHandler.

Reimplemented in lemur::parse::ArabicStemmer, lemur::parse::KStemmer, and lemur::parse::PorterStemmer.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4