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

lemur::dictionary::StopwordDictEntryFilter Class Reference

Accept all entries not on the given stopword list. This filters on the target language. More...

#include <PDict.hpp>

Inheritance diagram for lemur::dictionary::StopwordDictEntryFilter:

lemur::dictionary::DictEntryFilter List of all members.

Public Member Functions

 StopwordDictEntryFilter (const string &stopwords)
 Initialize the Stopper to use.

bool accept (const DictEntry &entry) const
 Accept or reject an entry based on type.


Private Attributes

lemur::api::Stopperstopper

Detailed Description

Accept all entries not on the given stopword list. This filters on the target language.


Constructor & Destructor Documentation

lemur::dictionary::StopwordDictEntryFilter::StopwordDictEntryFilter const string &  stopwords  )  [inline]
 

Initialize the Stopper to use.

Parameters:
stopwords the stopword list to filter against.


Member Function Documentation

bool lemur::dictionary::StopwordDictEntryFilter::accept const DictEntry entry  )  const [inline, virtual]
 

Accept or reject an entry based on type.

Parameters:
entry The entry to filter
Returns:
true if the entry's type is equal to the filter type value.

Implements lemur::dictionary::DictEntryFilter.


Member Data Documentation

lemur::api::Stopper* lemur::dictionary::StopwordDictEntryFilter::stopper [private]
 


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