#ifndef HASH_GENERATOR_HDR #define HASH_GENERATOR_HDR #include #include #include #include #include #include "concordia/word_map.hpp" #include "concordia/common/config.hpp" #include "concordia/sentence_anonymizer.hpp" #include "concordia/concordia_config.hpp" #include "concordia/concordia_exception.hpp" /*! Class for generating a sentence hash. */ class HashGenerator { public: explicit HashGenerator(boost::shared_ptr config) throw(ConcordiaException); /*! Destructor. */ virtual ~HashGenerator(); std::vector generateHash(const std::string & sentence) throw(ConcordiaException); std::vector generateTokenVector(const std::string & sentence); void serializeWordMap(); private: boost::shared_ptr _wordMap; boost::shared_ptr _sentenceAnonymizer; std::string _wordMapFilePath; }; #endif