strusAnalyzer  0.17
normalizerFunctionInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_ANALYZER_NORMALIZER_FUNCTION_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_NORMALIZER_FUNCTION_INTERFACE_HPP_INCLUDED
12 #include <vector>
13 #include <string>
14 
16 namespace strus
17 {
18 
20 class TextProcessorInterface;
22 class NormalizerFunctionInstanceInterface;
23 
27 {
28 public:
31 
37  const std::vector<std::string>& args,
38  const TextProcessorInterface* tp) const=0;
39 
42  virtual const char* getDescription() const=0;
43 };
44 
45 }//namespace
46 #endif
47 
virtual ~NormalizerFunctionInterface()
Destructor.
Definition: normalizerFunctionInterface.hpp:30
Interface for a parameterized normalization function.
Definition: normalizerFunctionInstanceInterface.hpp:21
virtual const char * getDescription() const =0
Get a description of the function for user help.
virtual NormalizerFunctionInstanceInterface * createInstance(const std::vector< std::string > &args, const TextProcessorInterface *tp) const =0
Create a parameterizable normalizer function instance.
Interface for the normalizer constructor.
Definition: normalizerFunctionInterface.hpp:26
Interface for the object providing tokenizers and normalizers used for creating terms from segments o...
Definition: textProcessorInterface.hpp:49