|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.ie.crf.CRFClassifier.TestSequenceModel
public static class CRFClassifier.TestSequenceModel
Constructor Summary | |
---|---|
CRFClassifier.TestSequenceModel(CRFCliqueTree cliqueTree)
|
Method Summary | |
---|---|
int[] |
getPossibleValues(int pos)
0...leftWindow-1 etc are null, leftWindow...length+leftWindow-1 are words, length+leftWindow...length+leftWindow+rightWindow-1 are null; |
int |
leftWindow()
How many positions to the left a position is dependent on. |
int |
length()
|
int |
rightWindow()
How many positions to the right a position is dependent on. |
double |
scoreOf(int[] sequence)
Computes the score assigned by this model to the whole sequence. |
double |
scoreOf(int[] tags,
int pos)
Computes the unnormalized log conditional distribution over values of the element at position pos in the sequence, conditioned on the values of the elements in all other positions of the provided sequence. |
double[] |
scoresOf(int[] tags,
int pos)
Computes the unnormalized log conditional distribution over values of the element at position pos in the sequence, conditioned on the values of the elements in all other positions of the provided sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRFClassifier.TestSequenceModel(CRFCliqueTree cliqueTree)
Method Detail |
---|
public int length()
length
in interface SequenceModel
public int leftWindow()
SequenceModel
leftWindow
in interface SequenceModel
public int rightWindow()
SequenceModel
rightWindow
in interface SequenceModel
public int[] getPossibleValues(int pos)
SequenceModel
getPossibleValues
in interface SequenceModel
pos
- the position
public double scoreOf(int[] tags, int pos)
SequenceModel
scoreOf
in interface SequenceModel
tags
- the sequence containing the rest of the values to condition onpos
- the position of the element to give a distribution for
public double[] scoresOf(int[] tags, int pos)
SequenceModel
scoresOf
in interface SequenceModel
tags
- the sequence containing the rest of the values to condition onpos
- the position of the element to give a distribution for
public double scoreOf(int[] sequence)
SequenceModel
scoreOf
in interface SequenceModel
sequence
- the sequence to compute a score for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |