|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.sequences.SequenceSampler
public class SequenceSampler
This class will sample an output from a sequence model. It assumes that the scores are (unnormalized) log-probabilities. It works by sampling each variable in order, conditioned on the previous variables.
Constructor Summary | |
---|---|
SequenceSampler()
|
Method Summary | |
---|---|
int[] |
bestSequence(SequenceModel ts)
Runs the Viterbi algorithm on the sequence model given by the TagScorer in order to find the best sequence. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceSampler()
Method Detail |
---|
public static void main(java.lang.String[] args)
public int[] bestSequence(SequenceModel ts)
bestSequence
in interface BestSequenceFinder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |