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

lemur::api::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 lemur::api::Stopper:

lemur::utility::WordSet lemur::api::TextHandler List of all members.

Public Member Functions

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

char * handleWord (char *word)
void writePropertyList (lemur::parse::PropertyList *list) const
 Write out the properties associated with this TextHandler into the given list.


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

lemur::api::Stopper::Stopper  ) 
 

lemur::api::Stopper::Stopper const string &  filename  ) 
 

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


Member Function Documentation

char * lemur::api::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 lemur::api::TextHandler.

bool lemur::api::Stopper::stopWord const char *  word  )  const
 

Checks to see if a word is a stopword.

void lemur::api::Stopper::writePropertyList lemur::parse::PropertyList list  )  const [virtual]
 

Write out the properties associated with this TextHandler into the given list.

Reimplemented from lemur::api::TextHandler.


Member Data Documentation

const string lemur::api::Stopper::category = "stopper" [static]
 

Reimplemented from lemur::api::TextHandler.

const string lemur::api::Stopper::identifier = "stopper" [static]
 

Reimplemented from lemur::api::TextHandler.


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