public class BigramLogLikelihood
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
BigramLogLikelihood()
Don't allow instantiation but do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static double |
calculateLogLikelihood(double c1,
double c2,
double c12,
double n)
Compute log likelihood value for a bigram.
|
protected static double |
logLike(double k,
double n,
double x)
Compute one part of log likelihood value.
|
protected BigramLogLikelihood()
protected static double logLike(double k, double n, double x)
public static double calculateLogLikelihood(double c1, double c2, double c12, double n)
c1
- Count of first word in bigram.c2
- Count of second word in bigram.c12
- Count of bigram.n
- Corpus size.