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);