summaryrefslogtreecommitdiff
path: root/training/const_reorder/constituent_reorder_model.cc
diff options
context:
space:
mode:
authorWu, Ke <wuke@cs.umd.edu>2014-12-17 15:41:32 -0500
committerWu, Ke <wuke@cs.umd.edu>2014-12-17 15:41:32 -0500
commit62249e8de1be27057649aa787b715af5727f8a7c (patch)
treedefd66b26121d2c9043efa9459ad9e7298d06c47 /training/const_reorder/constituent_reorder_model.cc
parent0867694ffd2b2c8c7a23691ab74f8548c4baac72 (diff)
Move training routine out of ff_const_reorder_common.h
Diffstat (limited to 'training/const_reorder/constituent_reorder_model.cc')
-rw-r--r--training/const_reorder/constituent_reorder_model.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/training/const_reorder/constituent_reorder_model.cc b/training/const_reorder/constituent_reorder_model.cc
index 6bec3f0b..d3ad0f2b 100644
--- a/training/const_reorder/constituent_reorder_model.cc
+++ b/training/const_reorder/constituent_reorder_model.cc
@@ -12,7 +12,7 @@
#include "utils/filelib.h"
-#include "decoder/ff_const_reorder_common.h"
+#include "trainer.h"
using namespace std;
using namespace const_reorder;
@@ -104,8 +104,8 @@ struct SConstReorderTrainer {
pZhangleMaxent->fnTrain(pszInstanceFname, "lbfgs", pszModelFname, 100, 2.0);
delete pZhangleMaxent;*/
- Tsuruoka_Maxent* pMaxent = new Tsuruoka_Maxent(NULL);
- pMaxent->fnTrain(pszNewInstanceFName, "l1", pszModelFname, 300);
+ Tsuruoka_Maxent_Trainer* pMaxent = new Tsuruoka_Maxent_Trainer;
+ pMaxent->fnTrain(pszNewInstanceFName, "l1", pszModelFname);
delete pMaxent;
if (strcmp(pszNewInstanceFName, pszInstanceFname) != 0) {