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
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-08-26 12:46:20 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-08-26 12:46:20 +0300
commit1dc8eb0cd5e8a467d58fa3de3478462244cf13fa (patch)
tree3e3d5a976ab0a44d00e101085f60fb3143670361 /moses/Manager.cpp
parent44e5a66ca25fdd5ba5a9f44501161be8e7c484ef (diff)
add back OutputPassthroughInformation() /Vincent Nguyen
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r--moses/Manager.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp
index 9a678d99d..7930cc571 100644
--- a/moses/Manager.cpp
+++ b/moses/Manager.cpp
@@ -569,6 +569,14 @@ void Manager::OutputWordGraph(std::ostream &outputWordGraphStream, const Hypothe
outputWordGraphStream << endl;
}
+// VN put back of OutputPassthroughInformation
+void Manager::OutputPassthroughInformation(std::ostream &out, const Hypothesis *hypo) const
+{
+ const std::string passthrough = hypo->GetManager().GetSource().GetPassthroughInformation();
+ out << passthrough;
+}
+// end of put back
+
void Manager::GetOutputLanguageModelOrder( std::ostream &out, const Hypothesis *hypo ) const
{
Phrase translation;
@@ -1508,6 +1516,12 @@ void Manager::OutputBest(OutputCollector *collector) const
out << translationId << " ";
}
+ // VN : I put back the code for OutputPassthroughInformation
+ if (staticData.IsPassthroughEnabled()) {
+ OutputPassthroughInformation(out, bestHypo);
+ }
+ // end of add back
+
if (staticData.GetReportSegmentation() == 2) {
GetOutputLanguageModelOrder(out, bestHypo);
}