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 (char *filename)
bool stopWord (char *word)
 Checks to see if a word is a stopword.

char * handleWord (char *word)

Detailed Description

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


Constructor & Destructor Documentation

Stopper::Stopper  
 

Stopper::Stopper char *    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 char *    word
 

Checks to see if a word is a stopword.


The documentation for this class was generated from the following files:
Generated on Tue Nov 25 11:27:20 2003 for Lemur Toolkit by doxygen1.2.18