#include <quering.hh>
Public Member Functions | |
QueryEngine (const char *) | |
~QueryEngine () | |
std::pair< bool, std::vector < target_text > > | query (StringPiece source_phrase) |
std::pair< bool, std::vector < target_text > > | query (std::vector< uint64_t > source_phrase) |
void | printTargetInfo (std::vector< target_text > target_phrases) |
const std::map< unsigned int, std::string > | getVocab () const |
const std::map< uint64_t, std::string > | getSourceVocab () const |
Definition at line 14 of file quering.hh.
QueryEngine::QueryEngine | ( | const char * | filepath | ) |
Source phrase vocabids
Definition at line 26 of file quering.cpp.
References API_VERSION, HuffmanDecoder::get_target_lookup_map(), read_binary_file(), read_map(), readTable(), and util::ProbingHashTable< Entry, boost::hash< uint64_t > >::Size().
QueryEngine::~QueryEngine | ( | ) |
Definition at line 81 of file quering.cpp.
const std::map<uint64_t, std::string> QueryEngine::getSourceVocab | ( | ) | const [inline] |
Definition at line 39 of file quering.hh.
Referenced by Moses::ProbingPT::Load().
const std::map<unsigned int, std::string> QueryEngine::getVocab | ( | ) | const [inline] |
Definition at line 35 of file quering.hh.
References HuffmanDecoder::get_target_lookup_map().
Referenced by Moses::ProbingPT::Load().
void QueryEngine::printTargetInfo | ( | std::vector< target_text > | target_phrases | ) |
Definition at line 173 of file quering.cpp.
References getTargetWordsFromIDs().
Referenced by main().
std::pair< bool, std::vector< target_text > > QueryEngine::query | ( | std::vector< uint64_t > | source_phrase | ) |
Definition at line 89 of file quering.cpp.
References HuffmanDecoder::full_decode_line(), and key.
std::pair< bool, std::vector< target_text > > QueryEngine::query | ( | StringPiece | source_phrase | ) |
Definition at line 129 of file quering.cpp.
References HuffmanDecoder::full_decode_line(), getVocabIDs(), and key.
Referenced by Moses::ProbingPT::CreateTargetPhrase(), and main().