From fbfe5890d13760a6610abaf2b1797dc1db5cc9f4 Mon Sep 17 00:00:00 2001 From: Ulrich Germann Date: Wed, 11 Nov 2015 14:00:02 +0000 Subject: [PATCH] Formatting. --- misc/queryLexicalTable.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/queryLexicalTable.cpp b/misc/queryLexicalTable.cpp index 6d4051424..388f87882 100644 --- a/misc/queryLexicalTable.cpp +++ b/misc/queryLexicalTable.cpp @@ -6,6 +6,7 @@ #include "moses/Timer.h" #include "moses/InputFileStream.h" #include "moses/FF/LexicalReordering/LexicalReorderingTable.h" +#include "moses/parameters/OOVHandlingOptions.h" using namespace Moses; @@ -109,7 +110,12 @@ int main(int argc, char** argv) std::cerr << "Caching for f\n"; table->InitializeForInputPhrase(f); } - std::cerr << "Querying: f='" << f.GetStringRep(f_mask) << "' e='" << e.GetStringRep(e_mask) << "' c='" << c.GetStringRep(c_mask) << "'\n"; + + OOVHandlingOptions unk; + std::cerr << "Querying: " + << "f='" << f.GetStringRep(f_mask, unk) <<"' " + << "e='" << e.GetStringRep(e_mask, unk) << "' " + << "c='" << c.GetStringRep(c_mask, unk) << "'\n"; std::cerr << table->GetScore(f,e,c) << "\n"; //table->DbgDump(&std::cerr); delete table;