Examples of CRFTrainerByPR


Examples of cc.mallet.fst.semi_supervised.pr.CRFTrainerByPR

    if (testing != null)
      logger.info("Testing on " + testing.size() + " instances");
   
    assert(numThreads.value > 0);
   
    CRFTrainerByPR trainer = new CRFTrainerByPR(crf,constraints,numThreads.value);
    trainer.addEvaluator(eval);
    trainer.setPGaussianPriorVariance(var);
    trainer.train(training,iterations,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.