Branch: refs/heads/matecat_async
Home: https://github.com/moses-smt/mosesdecoder
Commit: cd50a9f94cb6a157163225b0108fc29770fea9af
https://github.com/moses-smt/mosesdecoder/commit/cd50a9f94cb6a157163225b0108fc29770fea9af
Author: Nicola Bertoldi <ber...@fb...>
Date: 2012-09-19 (Wed, 19 Sep 2012)
Changed paths:
M moses-cmd/src/IOWrapper.cpp
M moses-cmd/src/IOWrapper.h
M moses-cmd/src/Main.cpp
M moses/src/InputType.h
M moses/src/Parameter.cpp
M moses/src/Sentence.cpp
M moses/src/StaticData.cpp
M moses/src/StaticData.h
M moses/src/Util.cpp
M moses/src/Util.h
Log Message:
-----------
I added the possibility to include in input of Moses an xml tag '<passthrough any_info/>' which is tunneled towards the output and the the nbest list without any computation on it.
The content of the tag (any_info) could be anything, but symbols '<' and '>'.
The tunneling of this tag towards the output and towards the nbest can be enabled by means of the parameters '-print-passthrough' and '-print-passthrough-in-n-best', respectively.
|