Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Stopper Class Reference

#include <Stopper.hpp>

Inheritance diagram for Stopper:

WordSet TextHandler List of all members.

Public Methods

 Stopper ()
 Stopper (const string &filename)
bool stopWord (const char *word) const
 Checks to see if a word is a stopword.

char * handleWord (char *word)

Static Public Attributes

const string category = "Stopper"
const string identifier = "Stopper"

Detailed Description

Provides a stopword list that can be chained with a Parser using the TextHandler class.


Constructor & Destructor Documentation

Stopper::Stopper  
 

Stopper::Stopper const string &    filename
 

Create the stopword list, loading it from file. One word per line.


Member Function Documentation

char * Stopper::handleWord char *    word [virtual]
 

Will replace stopwords with a NULL pointer. Words not in the stopword list are passed on as is.

Reimplemented from TextHandler.

bool Stopper::stopWord const char *    word const
 

Checks to see if a word is a stopword.


Member Data Documentation

const string Stopper::category = "Stopper" [static]
 

Reimplemented from TextHandler.

const string Stopper::identifier = "Stopper" [static]
 

Reimplemented from TextHandler.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:55 2004 for Lemur Toolkit by doxygen1.2.18