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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-05-12 04:28:58 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-05-12 04:28:58 +0300
commitd122605c0d1a44d92526cccaeff640eee695aa62 (patch)
tree74b2de0c05adf515aa684fc7713993f5d618aa1b /moses/ChartManager.cpp
parentf087fce65eae426fa38efdea55405753992f10f7 (diff)
Code reorganization with respect to hypergraph output.
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r--moses/ChartManager.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/moses/ChartManager.cpp b/moses/ChartManager.cpp
index a0b39167a..9170b2a7c 100644
--- a/moses/ChartManager.cpp
+++ b/moses/ChartManager.cpp
@@ -291,9 +291,11 @@ void ChartManager::FindReachableHypotheses(
}
}
-void ChartManager::OutputSearchGraphAsHypergraph(std::ostream &outputSearchGraphStream) const
+void
+ChartManager::
+OutputSearchGraphAsHypergraph(std::ostream& out) const
{
- ChartSearchGraphWriterHypergraph writer(&outputSearchGraphStream);
+ ChartSearchGraphWriterHypergraph writer(&out);
WriteSearchGraph(writer);
}
@@ -812,14 +814,14 @@ void ChartManager::OutputDetailedAllTranslationReport(
collector->Write(translationId, out.str());
}
-void ChartManager::OutputSearchGraphHypergraph() const
-{
- const StaticData &staticData = StaticData::Instance();
- if (staticData.GetOutputSearchGraphHypergraph()) {
- HypergraphOutput<ChartManager> hypergraphOutputChart(PRECISION);
- hypergraphOutputChart.Write(*this);
- }
-}
+// void ChartManager::OutputSearchGraphHypergraph() const
+// {
+// const StaticData &staticData = StaticData::Instance();
+// if (staticData.GetOutputSearchGraphHypergraph()) {
+// HypergraphOutput<ChartManager> hypergraphOutputChart(PRECISION);
+// hypergraphOutputChart.Write(*this);
+// }
+// }
void ChartManager::OutputBestHypo(OutputCollector *collector, const ChartHypothesis *hypo, long translationId) const
{