Uses of Class
opennlp.tools.ml.model.Context
Packages that use Context
Package
Description
Package related to Machine Learning (ML) features of OpenNLP, the related ML models, and trainers.
Package related to ML by means of the Maximum Entropy (ME) algorithm.
Package related to ML by means of the Quasi Newton (QN) algorithm.
Package related to ML models and feature selection techniques.
Package related to ML by means of the Naive Bayes algorithm.
Package related to ML by means of the perceptron algorithm.
-
Uses of Context in opennlp.tools.ml
Fields in opennlp.tools.ml declared as ContextMethods in opennlp.tools.ml with parameters of type ContextModifier and TypeMethodDescriptionstatic void
ArrayMath.sumFeatures
(Context[] context, float[] values, double[] prior) -
Uses of Context in opennlp.tools.ml.maxent
Constructors in opennlp.tools.ml.maxent with parameters of type Context -
Uses of Context in opennlp.tools.ml.maxent.quasinewton
Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type Context -
Uses of Context in opennlp.tools.ml.model
Subclasses of Context in opennlp.tools.ml.modelModifier and TypeClassDescriptionclass
An extension ofContext
used to store parameters or expected values associated with this context which can be updated or assigned.Fields in opennlp.tools.ml.model with type parameters of type ContextModifier and TypeFieldDescriptionAbstractModel.pmap
Mapping between predicates/contexts and an integer representing them.Methods in opennlp.tools.ml.model that return ContextModifier and TypeMethodDescriptionprotected Context[]
AbstractModelReader.getParameters
(int[][] outcomePatterns) Reads the parameters from a file and populates an array ofContext
objects.Context[]
DynamicEvalParameters.getParams()
Context[]
EvalParameters.getParams()
Methods in opennlp.tools.ml.model with parameters of type ContextModifier and TypeMethodDescriptionvoid
Populates the specified array with the log of the distribution for the specified context.void
Constructors in opennlp.tools.ml.model with parameters of type ContextModifierConstructorDescriptionAbstractModel
(Context[] params, String[] predLabels, String[] outcomeNames) Initializes anAbstractModel
.protected
AbstractModel
(Context[] params, String[] predLabels, Map<String, Context> pmap, String[] outcomeNames) Initializes anAbstractModel
.EvalParameters
(Context[] params, int numOutcomes) Constructor parameters in opennlp.tools.ml.model with type arguments of type ContextModifierConstructorDescriptionprotected
AbstractModel
(Context[] params, String[] predLabels, Map<String, Context> pmap, String[] outcomeNames) Initializes anAbstractModel
.DynamicEvalParameters
(List<? extends Context> params, int numOutcomes) Creates a set of parameters which can be evaluated with the eval method. -
Uses of Context in opennlp.tools.ml.naivebayes
Methods in opennlp.tools.ml.naivebayes with parameters of type ContextModifier and TypeMethodDescriptionprotected double[]
NaiveBayesModel.initOutcomeTotals
(String[] outcomeNames, Context[] params) Constructors in opennlp.tools.ml.naivebayes with parameters of type ContextModifierConstructorDescriptionNaiveBayesEvalParameters
(Context[] params, int numOutcomes, double[] outcomeTotals, long vocabulary) NaiveBayesModel
(Context[] params, String[] predLabels, String[] outcomeNames) Initializes aNaiveBayesModel
. -
Uses of Context in opennlp.tools.ml.perceptron
Constructors in opennlp.tools.ml.perceptron with parameters of type ContextModifierConstructorDescriptionPerceptronModel
(Context[] params, String[] predLabels, String[] outcomeNames) Initializes aPerceptronModel
.