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 TypMethodeBeschreibungbooleaninthashCode()voidlogPrior(double[] dist, int[] context) Populates the specified array with the log of the distribution for the specified context.voidlogPrior(double[] dist, int[] context, float[] values) Populates the specified array with the log of the distribution for the specified context.voidPopulates the specified array with the log of the distribution for the specified context.voidMethod 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:PriorPopulates 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:PriorPopulates 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:PriorPopulates 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:PriorMethod 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
-