|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.UniformPrior
public class UniformPrior
Provide a maximum entropy model with a uniform prior.
Constructor Summary | |
---|---|
UniformPrior()
|
Method Summary | |
---|---|
void |
logPrior(double[] dist,
int[] context)
Populates the specified array with the the log of the distribution for the specified context. |
void |
logPrior(double[] dist,
int[] context,
float[] values)
Populates the specified array with the the log of the distribution for the specified context. |
void |
setLabels(java.lang.String[] outcomeLabels,
java.lang.String[] contextLabels)
Method to specify the label for the outcomes and contexts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformPrior()
Method Detail |
---|
public void logPrior(double[] dist, int[] context, float[] values)
Prior
logPrior
in interface Prior
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.values
- The values associated with the context.public void logPrior(double[] dist, int[] context)
Prior
logPrior
in interface Prior
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.public void setLabels(java.lang.String[] outcomeLabels, java.lang.String[] contextLabels)
Prior
setLabels
in interface Prior
outcomeLabels
- An array of each outcome label.contextLabels
- An array of each context label.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |