mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-07-14 23:00:29 +03:00
stop printing out UNK when factor == NULL. /Etienne Monneret
This commit is contained in:
parent
b199e654df
commit
4b0560b5c9
@ -1724,7 +1724,7 @@ OutputSurface(std::ostream &out, Hypothesis const& edge, bool const recursive) c
|
||||
for (size_t i = 1 ; i < outputFactorOrder.size() ; i++) {
|
||||
const Factor *factor = phrase.GetFactor(pos, outputFactorOrder[i]);
|
||||
if (factor) out << fd << *factor;
|
||||
else out << fd << UNKNOWN_FACTOR;
|
||||
//else out << fd << UNKNOWN_FACTOR;
|
||||
}
|
||||
|
||||
if(markUnknown && word.IsOOV()) {
|
||||
|
Loading…
Reference in New Issue
Block a user