This computes scores of tags at a position in a sentence (the so called "History").
Usually, it precomputes scores of local features (localScores).
This is turned off if VERBOSE is set to make printing feature weights simpler....
Return the valid sequence labels (as integer indices) for a particular
position in the sequence. Since the sequence is padded at each end,
typically sequence items 0...leftWindow-1 are null,
leftWindow...length+leftWindow-1 are words,
length+leftWindow...length+leftWindow+rightWindow-1 are null.
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. Typically, this is an unnormalized log conditional
probability of the label at the given position in the sequence, given the
input data nd the other labels.
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. The returned array elements
correspond index-by-index to the possible values returned by
getPossibleValues(int). The label at sequence[position] is ignored in
the calculations. The scores are often given as an unnormalized log
conditional distribution over possible labels. Otherwise, they may be
probabilities. If it is a probability distribution, conceptually, the
scores should sum to 1 (perhaps after transforming them). Note that
implementations often alter sequence[position] to do their calculations,
and so access to the array isn't threadsafe, but should restore its