diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-23 16:53:30 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-23 16:53:30 +0400 |
commit | 4dfb625536e3b7deed1896d26c84c8f041288ba9 (patch) | |
tree | daf1af2a0f3d7a5ba4e3a4677de9b467d21f84a0 /moses-cmd | |
parent | 0613d98beb414753ce9701ab33e6e46a35e118e5 (diff) |
beautify
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/IOWrapper.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/moses-cmd/IOWrapper.cpp b/moses-cmd/IOWrapper.cpp index b1c50cff8..b04257e8b 100644 --- a/moses-cmd/IOWrapper.cpp +++ b/moses-cmd/IOWrapper.cpp @@ -217,12 +217,11 @@ void OutputSurface(std::ostream &out, const Hypothesis &edge, const std::vector< //preface surface form with UNK if marking unknowns const Word &word = phrase.GetWord(pos); if(markUnknown && word.IsOOV()) { - out << "UNK" << *factor; + out << "UNK" << *factor; + } else { + out << *factor; } - else { - out << *factor; - } - + for (size_t i = 1 ; i < outputFactorOrder.size() ; i++) { const Factor *factor = phrase.GetFactor(pos, outputFactorOrder[i]); CHECK(factor); |