Examples of CRFTrainerByGE


Examples of cc.mallet.fst.semi_supervised.CRFTrainerByGE

    if (testing != null)
      logger.info("Testing on " + testing.size() + " instances");
   
    assert(numThreads.value > 0);
   
    CRFTrainerByGE trainer = new CRFTrainerByGE(crf,constraints,numThreads.value);
    if (eval != null) trainer.addEvaluator(eval);
    trainer.setGaussianPriorVariance(var);
    trainer.setNumResets(resets);
    trainer.train(training,iterations);

    return crf;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.