Package edu.stanford.nlp.classify

Examples of edu.stanford.nlp.classify.LinearClassifierFactory


    verbose("Making classifier...");
    QNMinimizer minim = new QNMinimizer();//new ResultStoringMonitor(5, "weights"));
//    minim.shutUp();

    LinearClassifierFactory factory = new LinearClassifierFactory(minim);
    factory.setTol(tol);
    factory.setSigma(sigma);
    if (tuneSigma) {
      factory.setTuneSigmaHeldOut();
    }
    scorer = factory.trainClassifier(data);

    verbose("Done training.");
  }
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.classify.LinearClassifierFactory

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.