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

Stopper Class Reference

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

#include <Stopper.hpp>

Inheritance diagram for Stopper:

WordSet TextHandler List of all members.

Public Methods

 Stopper ()
 Stopper (char *filename)
 Create the stopword list, loading it from file. One word per line.

bool stopWord (char *word)
 Checks to see if a word is a stopword.

char* handleWord (char *word)
 Will replace stopwords with a NULL pointer. Words not in the stopword list are passed on as is.


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 at Fri Jul 26 18:22:59 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000