public class Collocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DICE
Indices of association measures in result array.
|
static int |
LOGLIKE |
static int |
PHISQUARED |
static int |
SCP |
static int |
SMI |
static int |
T |
static int |
Z |
Modifier | Constructor and Description |
---|---|
protected |
Collocation()
Don't allow instantiation but do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
association(int sampleCount,
int refCount,
int sampleSize,
int refSize)
Computes collocation measures.
|
public static final int DICE
public static final int LOGLIKE
public static final int PHISQUARED
public static final int SMI
public static final int SCP
public static final int T
public static final int Z
protected Collocation()
public static double[] association(int sampleCount, int refCount, int sampleSize, int refSize)
sampleCount
- Count of collocation appearance in sample.refCount
- Count of collocation appearance in reference
corpus.sampleSize
- Number of words/lemmas in the sample.refSize
- Number of words/lemmas in reference corpus.