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 voidArrayMath.sumFeatures(Context[] context, float[] values, double[] prior) -
Uses of Context in opennlp.tools.ml.maxent
Methods in opennlp.tools.ml.maxent with parameters of type ContextModifier and TypeMethodDescription(package private) static double[]GISModel.eval(Context[] context, float[] values, double[] prior, EvalParameters model) Evaluates a context and return an array of the likelihood of each outcome given the specified context and the specified parameters.Constructors in opennlp.tools.ml.maxent with parameters of type Context -
Uses of Context in opennlp.tools.ml.maxent.quasinewton
Methods in opennlp.tools.ml.maxent.quasinewton that return ContextConstructors 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 TypeClassDescriptionclassAn extension ofContextused to store parameters or expected values associated with this context which can be updated or assigned.Fields in opennlp.tools.ml.model declared as ContextModifier and TypeFieldDescriptionprivate final Context[]EvalParameters.paramsMapping between outcomes and parameter values for each context.Fields in opennlp.tools.ml.model with type parameters of type ContextModifier and TypeFieldDescriptionDynamicEvalParameters.paramsMapping between outcomes and parameter values for each context.AbstractModel.pmapMapping 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 ofContextobjects.Context[]DynamicEvalParameters.getParams()Context[]EvalParameters.getParams()Methods in opennlp.tools.ml.model with parameters of type ContextModifier and TypeMethodDescriptionprivate voidvoidPopulates the specified array with the log of the distribution for the specified context.voidConstructors in opennlp.tools.ml.model with parameters of type ContextModifierConstructorDescriptionAbstractModel(Context[] params, String[] predLabels, String[] outcomeNames) Initializes anAbstractModel.protectedAbstractModel(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 ContextModifierConstructorDescriptionprotectedAbstractModel(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 TypeMethodDescription(package private) static double[]NaiveBayesModel.eval(Context[] context, float[] values, double[] prior, EvalParameters model, boolean normalize) Evaluates aNaiveBayesModel.protected 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.(package private)NaiveBayesModel(Context[] params, String[] predLabels, Map<String, Context> pmap, String[] outcomeNames) Initializes aNaiveBayesModel.Constructor parameters in opennlp.tools.ml.naivebayes with type arguments of type ContextModifierConstructorDescription(package private)NaiveBayesModel(Context[] params, String[] predLabels, Map<String, Context> pmap, String[] outcomeNames) Initializes aNaiveBayesModel. -
Uses of Context in opennlp.tools.ml.perceptron
Methods in opennlp.tools.ml.perceptron with parameters of type ContextModifier and TypeMethodDescription(package private) static double[]PerceptronModel.eval(Context[] context, float[] values, double[] prior, EvalParameters model, boolean normalize) Evaluates aPerceptronModel.Constructors in opennlp.tools.ml.perceptron with parameters of type ContextModifierConstructorDescriptionPerceptronModel(Context[] params, String[] predLabels, String[] outcomeNames) Initializes aPerceptronModel.