From 8107bcf1eaab5f580d8357f5fef239e38d76584b Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Fri, 1 Jan 2016 15:12:16 +0000 Subject: [PATCH] store pointer to vocab id --- contrib/other-builds/moses2/legacy/ProbingPT/quering.cpp | 4 ++-- contrib/other-builds/moses2/legacy/ProbingPT/quering.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/other-builds/moses2/legacy/ProbingPT/quering.cpp b/contrib/other-builds/moses2/legacy/ProbingPT/quering.cpp index 622fa64fe..c9458756f 100644 --- a/contrib/other-builds/moses2/legacy/ProbingPT/quering.cpp +++ b/contrib/other-builds/moses2/legacy/ProbingPT/quering.cpp @@ -39,7 +39,7 @@ QueryEngine::QueryEngine(const char * filepath) : decoder(filepath) read_map(&source_vocabids, path_to_source_vocabid.c_str()); //Target phrase vocabIDs - vocabids = decoder.get_target_lookup_map(); + vocabids = &decoder.get_target_lookup_map(); //Read config file std::string line; @@ -156,7 +156,7 @@ void QueryEngine::printTargetInfo(const std::vector &target_phrases for (int i = 0; i vocabids; + const std::map *vocabids; std::map source_vocabids; Table table;