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/TranslationTask.cpp | |
parent | f087fce65eae426fa38efdea55405753992f10f7 (diff) |
Code reorganization with respect to hypergraph output.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r-- | moses/TranslationTask.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/moses/TranslationTask.cpp b/moses/TranslationTask.cpp index 3794d35e7..0b425ef23 100644 --- a/moses/TranslationTask.cpp +++ b/moses/TranslationTask.cpp @@ -178,7 +178,12 @@ void TranslationTask::Run() // Output search graph in hypergraph format for Kenneth Heafield's // lazy hypergraph decoder; writes to stderr - manager->OutputSearchGraphHypergraph(); + if (StaticData::Instance().GetOutputSearchGraphHypergraph()) + { + size_t transId = manager->GetSource().GetTranslationId(); + string fname = io->GetHypergraphOutputFileName(transId); + manager->OutputSearchGraphAsHypergraph(fname, PRECISION); + } additionalReportingTime.stop(); |