Uses of Class opennlp.tools.ml.model.Context (Apache OpenNLP Tools 2.5.9 API)
Description: use: package: opennlp.tools.ml.model, class: Context

# Uses of Class
opennlp.tools.ml.model.Context

Packages that use Context
Package
Description
opennlp.tools.ml
Package related to Machine Learning (ML) features of OpenNLP, the related ML models, and trainers.
opennlp.tools.ml.maxent
Package related to ML by means of the Maximum Entropy (ME) algorithm.
opennlp.tools.ml.maxent.quasinewton
Package related to ML by means of the Quasi Newton (QN) algorithm.
opennlp.tools.ml.model
Package related to ML models and feature selection techniques.
opennlp.tools.ml.naivebayes
Package related to ML by means of the Naive Bayes algorithm.
opennlp.tools.ml.perceptron
Package related to ML by means of the perceptron algorithm.

- ## Uses of Context in opennlp.tools.ml

  Fields in opennlp.tools.ml declared as Context
  Modifier and Type
  Field
  Description
  `protected Context[]`
  AbstractMLModelWriter.`PARAMS`
  Methods in opennlp.tools.ml with parameters of type Context
  Modifier and Type
  Method
  Description
  `static 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
  Modifier
  Constructor
  Description
  ``
  `GISModel(Context[] params, String[] predLabels, String[] outcomeNames)`
  Initializes a `GISModel` with the specified parameters, outcome names, and predicate/feature labels.
  ``
  `GISModel(Context[] params, String[] predLabels, String[] outcomeNames, Prior prior)`
  Initializes a `GISModel` with the specified parameters, outcome names, and predicate/feature labels.

- ## Uses of Context in opennlp.tools.ml.maxent.quasinewton

  Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type Context
  Modifier
  Constructor
  Description
  ``
  `QNModel(Context[] params, String[] predLabels, String[] outcomeNames)`
  Initializes a `QNModel` with the specified parameters, predicate/feature labels, and outcome names.

- ## Uses of Context in opennlp.tools.ml.model

  Subclasses of Context in opennlp.tools.ml.model
  Modifier and Type
  Class
  Description
  `class`
  `MutableContext`
  An extension of `Context` 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 Context
  Modifier and Type
  Field
  Description
  `protected Map<String,Context>`
  AbstractModel.`pmap`
  Mapping between predicates/contexts and an integer representing them.
  Methods in opennlp.tools.ml.model that return Context
  Modifier and Type
  Method
  Description
  `protected Context[]`
  AbstractModelReader.`getParameters(int[][] outcomePatterns)`
  Reads the parameters from a file and populates an array of `Context` objects.
  `Context[]`
  DynamicEvalParameters.`getParams()`
  `Context[]`
  EvalParameters.`getParams()`
  Methods in opennlp.tools.ml.model with parameters of type Context
  Modifier and Type
  Method
  Description
  `void`
  Prior.`logPrior(double[] dist, Context[] context, float[] values)`
  Populates the specified array with the log of the distribution for the specified context.
  `void`
  UniformPrior.`logPrior(double[] dist, Context[] context, float[] values)`
  Constructors in opennlp.tools.ml.model with parameters of type Context
  Modifier
  Constructor
  Description
  ``
  `AbstractModel(Context[] params, String[] predLabels, String[] outcomeNames)`
  Initializes an `AbstractModel`.
  `protected`
  `AbstractModel(Context[] params, String[] predLabels, Map<String,Context> pmap, String[] outcomeNames)`
  Initializes an `AbstractModel`.
  ``
  `EvalParameters(Context[] params, int numOutcomes)`
  Constructor parameters in opennlp.tools.ml.model with type arguments of type Context
  Modifier
  Constructor
  Description
  `protected`
  `AbstractModel(Context[] params, String[] predLabels, Map<String,Context> pmap, String[] outcomeNames)`
  Initializes an `AbstractModel`.
  ``
  `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 Context
  Modifier and Type
  Method
  Description
  `protected double[]`
  NaiveBayesModel.`initOutcomeTotals(String[] outcomeNames, Context[] params)`
  Constructors in opennlp.tools.ml.naivebayes with parameters of type Context
  Modifier
  Constructor
  Description
  ``
  `NaiveBayesEvalParameters(Context[] params, int numOutcomes, double[] outcomeTotals, long vocabulary)`
  ``
  `NaiveBayesModel(Context[] params, String[] predLabels, String[] outcomeNames)`
  Initializes a `NaiveBayesModel`.

- ## Uses of Context in opennlp.tools.ml.perceptron

  Constructors in opennlp.tools.ml.perceptron with parameters of type Context
  Modifier
  Constructor
  Description
  ``
  `PerceptronModel(Context[] params, String[] predLabels, String[] outcomeNames)`
  Initializes a `PerceptronModel`.