Package cc.mallet.fst

Examples of cc.mallet.fst.CRFOptimizableByBatchLabelLikelihood$Factory


    if (numThreads == 1) {
      optLikelihood = new CRFOptimizableByLabelLikelihood(crf,trainingSet);
      ((CRFOptimizableByLabelLikelihood)optLikelihood).setGaussianPriorVariance(gpv);
    }
    else {
      CRFOptimizableByBatchLabelLikelihood likelihood = new CRFOptimizableByBatchLabelLikelihood(crf,trainingSet,numThreads);
      optLikelihood = new ThreadedOptimizable(likelihood,trainingSet,crf.getParameters().getNumFactors(),
        new CRFCacheStaleIndicator(crf));
      likelihood.setGaussianPriorVariance(gpv);
    }

    CRFOptimizableByGE ge = new CRFOptimizableByGE(crf,constraints,unlabeledSet,map,numThreads,geWeight);
    // turn off the prior... it already appears above!
    ge.setGaussianPriorVariance(Double.POSITIVE_INFINITY);
View Full Code Here

TOP

Related Classes of cc.mallet.fst.CRFOptimizableByBatchLabelLikelihood$Factory

Copyright © 2018 www.massapicom. 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.