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
commitbd9308e22b5434aa220cc57d82ee867464a011f1 (patch)
tree8acd68894f53f6bf1833847a0c246974701a611e /training
parentf2d50c333d0dde8a5ef211bc31b4978a3d8911cf (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);