public interface SequenceModel
Modifier and Type  Method and Description 

int[] 
getPossibleValues(int position)
Return the valid sequence labels (as integer indices) for a particular
position in the sequence.

int 
leftWindow()
How many label positions to the left influence the label assignment
at a particular position.

int 
length() 
int 
rightWindow()
How many label positions to the right influence the label assignment
at a particular position.

double 
scoreOf(int[] sequence)
Computes the score assigned by this model to the whole sequence.

double 
scoreOf(int[] sequence,
int position)
Computes the score of the element at the given position 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 scores of labels for the element at the given position in
the sequence, conditioned on the values of the labels at all other
positions of the provided sequence.

int length()
int leftWindow()
int rightWindow()
int[] getPossibleValues(int position)
position
 The positiondouble scoreOf(int[] sequence)
sequence
 The sequence of labels to compute a score fordouble scoreOf(int[] sequence, int position)
sequence
 The sequence containing the prediction and the rest of the
labels to condition onposition
 The position of the element to give a score fordouble[] 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