opennlp.perceptron
Class PerceptronTrainer
java.lang.Object
opennlp.perceptron.PerceptronTrainer
public class PerceptronTrainer
- extends java.lang.Object
Trains models using the perceptron algorithm. Each outcome is represented as
a binary perceptron classifier. This supports standard (integer) weighting as well
average weighting as described in:
Discriminative Training Methods for Hidden Markov Models: Theory and Experiments
with the Perceptron Algorithm. Michael Collins, EMNLP 2002.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerceptronTrainer
public PerceptronTrainer()
trainModel
public AbstractModel trainModel(int iterations,
DataIndexer di,
int cutoff)
trainModel
public AbstractModel trainModel(int iterations,
DataIndexer di,
int cutoff,
boolean useAverage)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.