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

Stemmer.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  *
00003  *  Original source copyright (c) 2001, Carnegie Mellon University.
00004  *  See copyright.cmu for details.
00005  *  Modifications copyright (c) 2002, University of Massachusetts.
00006  *  See copyright.umass for details.
00007  *
00008  *==========================================================================
00009  */
00010 
00011 #include "TextHandler.hpp"
00012 
00013 #ifndef _STEMMER_HPP
00014 #define _STEMMER_HPP
00015 namespace lemur 
00016 {
00017   namespace api 
00018   {
00019 
00021 
00023     class Stemmer : public TextHandler {
00024 
00025     public:
00026       static const string category;
00027       static const string identifier;
00028 
00029       Stemmer() { cat=category; iden=identifier;}
00030 
00031       virtual char * handleWord(char * word) {
00032         if (word != NULL) {
00033           return stemWord(word);
00034         }
00035         return word;
00036       }
00039       virtual char *stemWord(char * word) = 0;
00040 
00041     };
00042   }
00043 }
00044 
00045 #endif

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