00001 /*========================================================================== 00002 * 00003 * Original source copyright (c) 2003, Carnegie Mellon University. 00004 * See copyright.cmu for details. 00005 * 00006 *========================================================================== 00007 */ 00008 00009 #ifndef _TEXTHANDLERMGR_HPP 00010 #define _TEXTHANDLERMGR_HPP 00011 00012 #include "TextHandler.hpp" 00013 #include "WebParser.hpp" 00014 #include "TrecParser.hpp" 00015 #include "ChineseParser.hpp" 00016 #include "ChineseCharParser.hpp" 00017 #include "ReutersParser.hpp" 00018 #include "ArabicParser.hpp" 00019 #include "IdentifinderParser.hpp" 00020 #include "BrillPOSParser.hpp" 00021 #include "Stopper.hpp" 00022 #include "PorterStemmer.hpp" 00023 #include "KStemmer.hpp" 00024 #include "ArabicStemmer.hpp" 00025 #include "Exception.hpp" 00026 00035 class TextHandlerManager { 00036 public: 00041 static Parser* createParser(string type="", string acros=""); 00042 00048 static Stemmer* createStemmer(string type="", string datadir="", string func=""); 00049 00053 static Stopper* createStopper(string filename=""); 00054 }; 00055 00056 #endif //_TEXTHANDLERMGR_HPP