|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.model.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(String[] outcomeLabels,
String[] contextLabels)
Method to specify the label for the outcomes and contexts. |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 Priordist - 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 Priordist - 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(String[] outcomeLabels,
String[] contextLabels)
Prior
setLabels in interface PrioroutcomeLabels - 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 | ||||||||