Class QNModel
java.lang.Object
opennlp.tools.ml.model.AbstractModel
opennlp.tools.ml.maxent.quasinewton.QNModel
- All Implemented Interfaces:
opennlp.tools.ml.model.MaxentModel
public class QNModel
extends opennlp.tools.ml.model.AbstractModel
A
maximum entropy model which has been trained via the
L-BFGS algorithm ,
which belongs to the group of Quasi Newton (QN) algorithms.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class opennlp.tools.ml.model.AbstractModel
equals, getAllOutcomes, getBestOutcome, getDataStructures, getIndex, getModelType, getOutcome, hashCode
-
Constructor Details
-
QNModel
Initializes aQNModelwith the specified parameters, predicate/feature labels, and outcome names.- Parameters:
params- Theparametersof the model.predLabels- The names of the predicates used in this model.outcomeNames- The names of the outcomes this model predicts.
-
-
Method Details
-
getNumOutcomes
public int getNumOutcomes()- Specified by:
getNumOutcomesin interfaceopennlp.tools.ml.model.MaxentModel- Overrides:
getNumOutcomesin classopennlp.tools.ml.model.AbstractModel
-
eval
-
eval
-
eval
-