|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequenceModel
Class capable of scoring sequences of a fixed length, typically with a probability distribution over such sequences.
Method Summary | |
---|---|
int[] |
getPossibleValues(int position)
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[] sequence,
int position)
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[] sequence,
int position)
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. |
Method Detail |
---|
int length()
int leftWindow()
int rightWindow()
int[] getPossibleValues(int position)
position
- the position
double[] scoresOf(int[] sequence, int position)
sequence
- the sequence containing the rest of the values to condition onposition
- the position of the element to give a distribution for
double scoreOf(int[] sequence, int position)
sequence
- the sequence containing the rest of the values to condition onposition
- the position of the element to give a distribution for
double scoreOf(int[] sequence)
sequence
- the sequence to compute a score for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |