|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.ie.crf.FactorTable
public class FactorTable
Stores a factor table as a one dimensional array of doubles.
Constructor Summary | |
---|---|
FactorTable(int numClasses,
int windowSize)
|
Method Summary | |
---|---|
double |
conditionalLogProbGivenFirst(int given,
int[] of)
Computes the probability of the sequence OF being at the end of the table given that the first tag in table is GIVEN. |
double |
conditionalLogProbGivenNext(int[] given,
int of)
Computes the probability of the tag OF being at the beginning of the table given that the tag sequence GIVEN is at the end of the table. |
double |
conditionalLogProbGivenPrevious(int[] given,
int of)
Computes the probability of the tag OF being at the end of the table given that the previous tag sequence in table is GIVEN. |
double[] |
conditionalLogProbsGivenPrevious(int[] given)
Computes the probabilities of the tag at the end of the table given that the previous tag sequence in table is GIVEN. |
boolean |
containsNaN()
|
void |
divideBy(FactorTable other)
|
double |
getValue(int[] label)
|
void |
incrementValue(int[] label,
double value)
|
void |
logIncrementValue(int[] label,
double value)
|
double |
logProb(int[] label)
|
double |
logProbEnd(int label)
|
double |
logProbEnd(int[] labels)
|
double |
logProbFront(int label)
|
double |
logProbFront(int[] label)
|
static void |
main(String[] args)
|
void |
multiplyInEnd(FactorTable other)
|
void |
multiplyInFront(FactorTable other)
|
int |
numClasses()
|
double |
prob(int[] label)
|
void |
setValue(int[] label,
double value)
|
FactorTable |
sumOutEnd()
|
FactorTable |
sumOutFront()
|
String |
toProbString()
|
String |
toString()
|
String |
toString(Index classIndex)
|
double |
totalMass()
|
double |
unnormalizedConditionalLogProbGivenFirst(int given,
int[] of)
Computes the probability of the sequence OF being at the end of the table given that the first tag in table is GIVEN. |
double |
unnormalizedLogProb(int[] label)
|
double |
unnormalizedLogProbEnd(int label)
|
double |
unnormalizedLogProbEnd(int[] labels)
|
double |
unnormalizedLogProbFront(int label)
|
double |
unnormalizedLogProbFront(int[] labels)
|
int |
windowSize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FactorTable(int numClasses, int windowSize)
Method Detail |
---|
public boolean containsNaN()
public String toProbString()
public String toString(Index classIndex)
public String toString()
toString
in class Object
public int windowSize()
public int numClasses()
public double totalMass()
public double unnormalizedLogProb(int[] label)
public double logProb(int[] label)
public double prob(int[] label)
public double conditionalLogProbGivenPrevious(int[] given, int of)
given
- of
-
public double[] conditionalLogProbsGivenPrevious(int[] given)
given
-
public double conditionalLogProbGivenFirst(int given, int[] of)
given
- of
-
public double unnormalizedConditionalLogProbGivenFirst(int given, int[] of)
given
- of
-
public double conditionalLogProbGivenNext(int[] given, int of)
given
- of
-
public double unnormalizedLogProbFront(int[] labels)
public double logProbFront(int[] label)
public double unnormalizedLogProbFront(int label)
public double logProbFront(int label)
public double unnormalizedLogProbEnd(int[] labels)
public double logProbEnd(int[] labels)
public double unnormalizedLogProbEnd(int label)
public double logProbEnd(int label)
public double getValue(int[] label)
public void setValue(int[] label, double value)
public void incrementValue(int[] label, double value)
public void logIncrementValue(int[] label, double value)
public void multiplyInFront(FactorTable other)
public void multiplyInEnd(FactorTable other)
public FactorTable sumOutEnd()
public FactorTable sumOutFront()
public void divideBy(FactorTable other)
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |