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

PorterStemmerTransformation.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2003-2004 University of Massachusetts.  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 
00013 //
00014 // PorterStemmerTransformation
00015 // 
00016 // 13 May 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_PORTERSTEMMERTRANSFORMATION_HPP
00020 #define INDRI_PORTERSTEMMERTRANSFORMATION_HPP
00021 
00022 #include "indri/Transformation.hpp"
00023 #include "indri/Porter_Stemmer.hpp"
00024 namespace indri
00025 {
00026   namespace parse
00027   {
00028     
00029     class PorterStemmerTransformation : public Transformation {
00030     private:
00031       ObjectHandler<indri::api::ParsedDocument>* _handler;
00032       Porter_Stemmer *stemmer;
00033     public:
00034       PorterStemmerTransformation();
00035       ~PorterStemmerTransformation();
00036       indri::api::ParsedDocument* transform( indri::api::ParsedDocument* document );
00037 
00038       void setHandler( ObjectHandler<indri::api::ParsedDocument>& handler );
00039       void handle( indri::api::ParsedDocument* document );
00040     };
00041   }
00042 }
00043 
00044 #endif // INDRI_PORTERSTEMMERTRANSFORMATION_HPP

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