opennlp.perceptron
Class PerceptronTrainer

java.lang.Object
  extended by 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.


Constructor Summary
PerceptronTrainer()
           
 
Method Summary
 AbstractModel trainModel(int iterations, DataIndexer di, int cutoff)
           
 AbstractModel trainModel(int iterations, DataIndexer di, int cutoff, boolean useAverage)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerceptronTrainer

public PerceptronTrainer()
Method Detail

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.