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 // CaseNormalizationTransformation 00015 // 00016 // 13 August 2004 -- tds 00017 // 00018 00019 #ifndef INDRI_CASENORMALIZATIONTRANSFORMATION_HPP 00020 #define INDRI_CASENORMALIZATIONTRANSFORMATION_HPP 00021 00022 #include "indri/Transformation.hpp" 00023 #include "indri/Parameters.hpp" 00024 #include "string-set.h" 00025 namespace indri 00026 { 00027 namespace parse 00028 { 00029 00030 class NormalizationTransformation : public Transformation { 00031 private: 00032 ObjectHandler<indri::api::ParsedDocument>* _handler; 00033 String_set* _acronyms; 00034 00035 public: 00036 NormalizationTransformation( indri::api::Parameters* acronymList = 0 ); 00037 ~NormalizationTransformation(); 00038 00039 indri::api::ParsedDocument* transform( indri::api::ParsedDocument* document ); 00040 00041 void handle( indri::api::ParsedDocument* document ); 00042 void setHandler( ObjectHandler<indri::api::ParsedDocument>& handler ); 00043 }; 00044 } 00045 } 00046 00047 #endif // INDRI_CASENORMALIZATIONTRANSFORMATION_HPP 00048 00049 00050