summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorWu, Ke <wuke@cs.umd.edu>2014-12-17 16:00:04 -0500
committerWu, Ke <wuke@cs.umd.edu>2014-12-17 16:00:04 -0500
commitb6dd5a683db9dda2d634dd2fdb76606819594901 (patch)
tree6d81454a2491b444a190262e62dae960ef13ebaa /training
parent62249e8de1be27057649aa787b715af5727f8a7c (diff)
Combine everything related to maxent to a single file
Diffstat (limited to 'training')
-rw-r--r--training/const_reorder/trainer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/training/const_reorder/trainer.cc b/training/const_reorder/trainer.cc
index e22a8a66..89bd7479 100644
--- a/training/const_reorder/trainer.cc
+++ b/training/const_reorder/trainer.cc
@@ -10,7 +10,7 @@ void Tsuruoka_Maxent_Trainer::fnTrain(const char* pszInstanceFName,
strcmp(pszAlgorithm, "sgd") == 0 || strcmp(pszAlgorithm, "SGD") == 0);
FILE* fpIn = fopen(pszInstanceFName, "r");
- ME_Model* pModel = new ME_Model();
+ maxent::ME_Model* pModel = new maxent::ME_Model();
char* pszLine = new char[100001];
int iNumInstances = 0;
@@ -30,7 +30,7 @@ void Tsuruoka_Maxent_Trainer::fnTrain(const char* pszInstanceFName,
iNumInstances++;
- ME_Sample* pmes = new ME_Sample();
+ maxent::ME_Sample* pmes = new maxent::ME_Sample();
char* p = strrchr(pszLine, ' ');
assert(p != NULL);