Package opennlp.tools.ml.model
package opennlp.tools.ml.model
Package related to ML models and feature selection techniques.
-
ClassDescriptionAbstract
DataIndexer
implementation for collecting event and context counts used in training.A basicMaxentModel
implementation.An abstract, basic implementation of a model reader.An abstract, basic implementation of a model writer.ADataReader
that reads files from a binary format.A maxent event representation which we can use to sort based on the predicates indexes contained in the events.A maxent predicate representation which we can use to sort based on the outcomes.Class which associates a real valued parameter or expected value with a particular contextual predicate or feature.Represents an indexer which compresses events in memory and performs feature selection.A factory that producesDataIndexer
instances.Describes generic ways to read data from aDataInputStream
.This class encapsulates the variables used in producing probabilities from a model and facilitates passing these variables to the eval method.The context of a decision point during training.Class for using a file ofevents
as anevent stream
.An genericAbstractModelReader
implementation.An genericAbstractModelWriter
implementation.A hash sum basedAbstractObjectStream
implementation.Interface for maximum entropy models.A helper class that handles Strings with more than 64k (65535 bytes) in length.An extension ofContext
used to store parameters or expected values associated with this context which can be updated or assigned.ADataReader
implementation based onObjectInputStream
.ADataIndexer
for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.ADataIndexer
for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates and maintains event values.A genericDataReader
implementation for plain text files.This interface allows one to implement a prior distribution for use in maximum entropy model training.Class for using a file of real-valuedevents
as anevent stream
.Sequence<T>Class which models a sequence.A classification model that can label an inputSequence
.Interface for streams ofsequences
used to train sequence models.Class which turns aSequenceStream
into an event stream.Collecting event and context counts by making two passes over the events.Provide a maximum entropy model with a uniformPrior
.