*/
omemm = new MEMMOptimizableByLabelLikelihood (memm, training);
// Gather the constraints
omemm.gatherExpectationsOrConstraints (true);
Optimizer maximizer = new LimitedMemoryBFGS(omemm);
int i;
// boolean continueTraining = true;
boolean converged = false;
logger.info ("CRF about to train with "+numIterations+" iterations");
for (i = 0; i < numIterations; i++) {
try {
converged = maximizer.optimize (1);
logger.info ("CRF finished one iteration of maximizer, i="+i);
runEvaluators();
} catch (IllegalArgumentException e) {
e.printStackTrace();
logger.info ("Catching exception; saying converged.");