diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-05-12 04:28:58 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-05-12 04:28:58 +0300 |
commit | d122605c0d1a44d92526cccaeff640eee695aa62 (patch) | |
tree | 74b2de0c05adf515aa684fc7713993f5d618aa1b /moses/ChartManager.cpp | |
parent | f087fce65eae426fa38efdea55405753992f10f7 (diff) |
Code reorganization with respect to hypergraph output.
Diffstat (limited to 'moses/ChartManager.cpp')
-rw-r--r-- | moses/ChartManager.cpp | 22 |
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 { |