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

Stopper.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 #ifndef _STOPPER_HPP
00013 #define _STOPPER_HPP
00014 #include "TextHandler.hpp"
00015 #include "WordSet.hpp"
00016 
00017 namespace lemur 
00018 {
00019   namespace api
00020   {
00024 
00025     class Stopper : public lemur::utility::WordSet, public TextHandler {
00026 
00027     public:
00028       static const string category;
00029       static const string identifier;
00030 
00031       Stopper();
00034       Stopper(const string &filename);
00035 
00037       bool stopWord(const char * word) const;
00038 
00039 
00043       char *  handleWord(char * word);
00044   
00045       void writePropertyList(lemur::parse::PropertyList* list) const;
00046     };
00047   }
00048 }
00049 #endif

Generated on Tue Jun 15 11:02:55 2010 for Lemur by doxygen 1.3.4