33 lines
653 B
C++
33 lines
653 B
C++
|
#ifndef SENTENCE_ANONYMIZER_HDR
|
||
|
#define SENTENCE_ANONYMIZER_HDR
|
||
|
|
||
|
#include <string>
|
||
|
#include "concordia/common/config.hpp"
|
||
|
#include "concordia/concordia_config.hpp"
|
||
|
#include "concordia/concordia_exception.hpp"
|
||
|
#include <boost/shared_ptr.hpp>
|
||
|
|
||
|
|
||
|
/*!
|
||
|
Class for anonymizing sentence before adding to index.
|
||
|
|
||
|
*/
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
class SentenceAnonymizer {
|
||
|
public:
|
||
|
explicit SentenceAnonymizer(boost::shared_ptr<ConcordiaConfig> config)
|
||
|
throw(ConcordiaException);
|
||
|
|
||
|
/*! Destructor.
|
||
|
*/
|
||
|
virtual ~SentenceAnonymizer();
|
||
|
|
||
|
string anonymize(const string & sentence);
|
||
|
|
||
|
private:
|
||
|
};
|
||
|
|
||
|
#endif
|