Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 17:00:02 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-11 17:00:02 +0300
commitfbfe5890d13760a6610abaf2b1797dc1db5cc9f4 (patch)
treef0cdd668dc58ffd23bec7d0d04f19d46163f93ab /misc
parent2ab6b8f16dee21bf220cdf03b9ee8cd71e6c2d4f (diff)
Formatting.
Diffstat (limited to 'misc')
-rw-r--r--misc/queryLexicalTable.cpp8
1 files changed, 7 insertions, 1 deletions
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;