From 4b10c59bea5284771e6a5219f28e38bd0e75f0d5 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Fri, 5 Dec 2014 21:33:59 +0000 Subject: add OutputSearchGraphHypergraph() to API framework. Move m_source to BaseManager --- moses-cmd/Main.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'moses-cmd') diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp index 1c57cb33d..03b3a5054 100644 --- a/moses-cmd/Main.cpp +++ b/moses-cmd/Main.cpp @@ -36,7 +36,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "moses/IOWrapper.h" #include "moses/Hypothesis.h" -#include "moses/HypergraphOutput.h" #include "moses/Manager.h" #include "moses/StaticData.h" #include "moses/TypeDef.h" @@ -139,18 +138,6 @@ int main(int argc, char** argv) TRACE_ERR("\n"); } - boost::shared_ptr > hypergraphOutput; - boost::shared_ptr > hypergraphOutputChart; - - if (staticData.GetOutputSearchGraphHypergraph()) { - if (staticData.IsChart()) { - hypergraphOutputChart.reset(new HypergraphOutput(PRECISION)); - } - else { - hypergraphOutput.reset(new HypergraphOutput(PRECISION)); - } - } - #ifdef WITH_THREADS ThreadPool pool(staticData.ThreadCount()); #endif @@ -170,12 +157,11 @@ int main(int argc, char** argv) TranslationTask* task; if (staticData.IsChart()) { // scfg - task = new TranslationTask(source, *ioWrapper, hypergraphOutputChart); + task = new TranslationTask(source, *ioWrapper, 2); } else { // pb - task = new TranslationTask(source, *ioWrapper, - hypergraphOutput); + task = new TranslationTask(source, *ioWrapper, 1); } // execute task -- cgit v1.2.3