diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-06 00:33:59 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-06 00:33:59 +0300 |
commit | 4b10c59bea5284771e6a5219f28e38bd0e75f0d5 (patch) | |
tree | a70cbcc78bcb93923791d903a1f63a19f5317791 /moses-cmd | |
parent | 6a77fd0ce3f5d3d52a20c1be808f1f7a0ffcb63b (diff) |
add OutputSearchGraphHypergraph() to API framework. Move m_source to BaseManager
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/Main.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
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<Manager> > hypergraphOutput; - boost::shared_ptr<HypergraphOutput<ChartManager> > hypergraphOutputChart; - - if (staticData.GetOutputSearchGraphHypergraph()) { - if (staticData.IsChart()) { - hypergraphOutputChart.reset(new HypergraphOutput<ChartManager>(PRECISION)); - } - else { - hypergraphOutput.reset(new HypergraphOutput<Manager>(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 |