public class NoisyLabelLinearCliquePotentialFunction extends java.lang.Object implements CliquePotentialFunction
Constructor and Description |
---|
NoisyLabelLinearCliquePotentialFunction(double[][] weights,
int[] docLabels,
double[][] errorMatrix) |
Modifier and Type | Method and Description |
---|---|
double |
computeCliquePotential(int cliqueSize,
int labelIndex,
int[] cliqueFeatures,
double[] featureVal,
int posInSent) |
public NoisyLabelLinearCliquePotentialFunction(double[][] weights, int[] docLabels, double[][] errorMatrix)
public double computeCliquePotential(int cliqueSize, int labelIndex, int[] cliqueFeatures, double[] featureVal, int posInSent)
computeCliquePotential
in interface CliquePotentialFunction
cliqueSize
- 1 if node clique, 2 if edge clique, etclabelIndex
- the index of the output class labelcliqueFeatures
- an int array containing the feature indices that are active in this cliquefeatureVal
- a double array containing the feature values corresponding to feature indices in cliqueFeatures