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/Manager.cpp
parentf087fce65eae426fa38efdea55405753992f10f7 (diff)
Code reorganization with respect to hypergraph output.
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r--moses/Manager.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp
index bb27e368b..9d56d4cfa 100644
--- a/moses/Manager.cpp
+++ b/moses/Manager.cpp
@@ -1974,14 +1974,19 @@ void Manager::OutputSearchGraphSLF() const
}
-void Manager::OutputSearchGraphHypergraph() const
-{
- const StaticData &staticData = StaticData::Instance();
- if (staticData.GetOutputSearchGraphHypergraph()) {
- HypergraphOutput<Manager> hypergraphOutput(PRECISION);
- hypergraphOutput.Write(*this);
- }
-}
+// void Manager::OutputSearchGraphHypergraph() const
+// {
+// const StaticData &staticData = StaticData::Instance();
+// if (!staticData.GetOutputSearchGraphHypergraph()) return;
+
+// static char const* key = "output-search-graph-hypergraph";
+// PARAM_VEC const* p = staticData.GetParameter().GetParam(key);
+// ScoreComponentCollection const& weights = staticData.GetAllWeights();
+// string const& nBestFile = staticData.GetNBestFilePath();
+// HypergraphOutput<Manager> hypergraphOutput(PRECISION, p, nBestFile, weights);
+// hypergraphOutput.Write(*this);
+
+// }
void Manager::OutputLatticeMBRNBest(std::ostream& out, const vector<LatticeMBRSolution>& solutions,long translationId) const
{