Namespace NOpenNLP.Tools.Ml.Perceptron

Classes

BinaryPerceptronModelReader
BinaryPerceptronModelWriter

Model writer that saves models in binary format.

PerceptronModel
PerceptronModelReader

Abstract parent class for readers of Perceptron.

PerceptronModelWriter

Abstract parent class for Perceptron writers. It provides the persist method which takes care of the structure of a stored document, and requires an extending class to define precisely how the data should be stored.

PerceptronTrainer

Trains models using the perceptron algorithm. Each outcome is represented as a binary perceptron classifier. This supports standard (integer) weighting as well as average weighting as described in: Discriminative Training Methods for Hidden Markov Models: Theory and Experiments with the Perceptron Algorithm. Michael Collins, EMNLP 2002.

SimplePerceptronSequenceTrainer<T>

Trains models for sequences using the perceptron algorithm. Each outcome is represented as a binary perceptron classifier. This supports standard (integer) weighting as well as average weighting. Sequence information is used in a simplified way to that described in: Discriminative Training Methods for Hidden Markov Models: Theory and Experiments with the Perceptron Algorithm. Michael Collins, EMNLP 2002. Specifically only updates are applied to tokens which were incorrectly tagged by a sequence tagger rather than to all features across the sequence which differ from the training sequence.