hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SnowballPlugin.hpp
Go to the documentation of this file.
1 
6 #ifndef _SNOWBALL_HPP
7 #define _SNOWBALL_HPP
8 
12 #include <libstemmer.h>
13 
17 #include <map>
18 
22 #include "TPlugin.hpp"
23 #include "LCoreData.hpp"
24 
25 namespace HCE
26 {
27 
28 namespace component
29 {
30 
31 
32 class SnowballPlugin : public TPlugin
33 {
34 public:
36  virtual ~SnowballPlugin();
37 public:
38  virtual void process(LCoreData&);
39 private:
40  sb_stemmer* _stemmer;
41  std::map<const SSTRING, sb_stemmer*> _mapStemmer;
42  std::map<const SSTRING, sb_stemmer*>::const_iterator _it;
43 private:
44  sb_stemmer* getStemmer( const SSTRING& );
45 };
46 
47 
48 } /* namespace component */
49 
50 } /* namespace HCE */
51 #endif