|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.Context
public class Context
Class which associates a real valueed parameter or expected value with a particular contextual predicate or feature. This is used to store maxent model parameters as well as model and emperical expected values.
Field Summary | |
---|---|
protected int[] |
outcomes
The outcomes which occur with this context. |
protected double[] |
parameters
The real valued parameters or expected values for this context. |
Constructor Summary | |
---|---|
Context(int[] outcomePattern,
double[] parameters)
Creates a new parametes object with the specifed parameters associated with the specified outcome pattern. |
Method Summary | |
---|---|
int[] |
getOutcomes()
Returns the outcomes for which parameters exists for this context. |
double[] |
getParameters()
Returns the paramaters or expected values for the outcomes which occur with this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] parameters
protected int[] outcomes
Constructor Detail |
---|
public Context(int[] outcomePattern, double[] parameters)
outcomePattern
- Array of outcomes for which parameters exists for this context.parameters
- Paramaters for the outcomes specified.Method Detail |
---|
public int[] getOutcomes()
public double[] getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |