Package opennlp.tools.ml.model
Klasse UniformPrior
java.lang.Object
opennlp.tools.ml.model.UniformPrior
- Alle implementierten Schnittstellen:
Prior
Provide a maximum entropy model with a uniform
Prior
.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
int
hashCode()
void
logPrior
(double[] dist, int[] context) Populates the specified array with the log of the distribution for the specified context.void
logPrior
(double[] dist, int[] context, float[] values) Populates the specified array with the log of the distribution for the specified context.void
Populates the specified array with the log of the distribution for the specified context.void
Method to specify the label for the outcomes and contexts.
-
Konstruktordetails
-
UniformPrior
public UniformPrior()
-
-
Methodendetails
-
logPrior
public void logPrior(double[] dist, int[] context, float[] values) Beschreibung aus Schnittstelle kopiert:Prior
Populates the specified array with the log of the distribution for the specified context. The returned array will be overwritten and needs to be re-initialized with every call to this method. -
logPrior
Beschreibung aus Schnittstelle kopiert:Prior
Populates the specified array with the log of the distribution for the specified context. The returned array will be overwritten and needs to be re-initialized with every call to this method. -
logPrior
public void logPrior(double[] dist, int[] context) Beschreibung aus Schnittstelle kopiert:Prior
Populates the specified array with the log of the distribution for the specified context. The returned array will be overwritten and needs to be re-initialized with every call to this method. -
setLabels
Beschreibung aus Schnittstelle kopiert:Prior
Method to specify the label for the outcomes and contexts. This is used to map integer outcomes and contexts to their string values. This method is called prior to any call toPrior.logPrior(double[], int[])
. -
hashCode
public int hashCode() -
equals
-