QueryEngine Class Reference

#include <quering.hh>

Collaboration diagram for QueryEngine:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 14 of file quering.hh.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

QueryEngine::~QueryEngine (  ) 

Definition at line 81 of file quering.cpp.


Member Function Documentation

const std::map<uint64_t, std::string> QueryEngine::getSourceVocab (  )  const [inline]

Definition at line 39 of file quering.hh.

Referenced by Moses::ProbingPT::Load().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void QueryEngine::printTargetInfo ( std::vector< target_text target_phrases  ) 

Definition at line 173 of file quering.cpp.

References getTargetWordsFromIDs().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Thu Oct 6 00:31:36 2016 for Moses by  doxygen 1.5.9