|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.fst.MaxLatticeDefault
public class MaxLatticeDefault
Default, full dynamic programming version of the Viterbi "Max-(Product)-Lattice" algorithm.
Nested Class Summary | |
---|---|
static class |
MaxLatticeDefault.Factory
|
Constructor Summary | |
---|---|
MaxLatticeDefault(Transducer t,
Sequence inputSequence)
|
|
MaxLatticeDefault(Transducer t,
Sequence inputSequence,
Sequence outputSequence)
|
|
MaxLatticeDefault(Transducer t,
Sequence inputSequence,
Sequence outputSequence,
int maxCaches)
Initiate Viterbi decoding of the inputSequence, contrained to match non-null parts of the outputSequence. |
Method Summary | |
---|---|
SequencePairAlignment<java.lang.Object,java.lang.Object> |
bestOutputAlignment()
|
java.util.List<SequencePairAlignment<java.lang.Object,java.lang.Object>> |
bestOutputAlignments(int n)
|
Sequence<java.lang.Object> |
bestOutputSequence()
|
java.util.List<Sequence<java.lang.Object>> |
bestOutputSequences(int n)
|
SequencePairAlignment<java.lang.Object,Transducer.State> |
bestStateAlignment()
|
java.util.List<SequencePairAlignment<java.lang.Object,Transducer.State>> |
bestStateAlignments(int n)
Perform the backward pass of Viterbi, returning the n-best sequences of States. |
Sequence<Transducer.State> |
bestStateSequence()
|
java.util.List<Sequence<Transducer.State>> |
bestStateSequences(int n)
|
java.util.List<SequencePairAlignment<java.lang.Object,cc.mallet.fst.MaxLatticeDefault.ViterbiNode>> |
bestViterbiNodeSequences(int n)
Perform the backward pass of Viterbi, returning the n-best sequences of ViterbiNodes. |
double |
bestWeight()
|
double |
elementwiseAccuracy(Sequence referenceOutput)
|
double |
getDelta(int ip,
int stateIndex)
|
Sequence |
getInput()
|
Sequence |
getProvidedOutput()
|
Transducer |
getTransducer()
|
protected cc.mallet.fst.MaxLatticeDefault.ViterbiNode |
getViterbiNode(int ip,
int stateIndex)
|
void |
incrementTransducer(Transducer.Incrementor incrementor)
Increment states and transitions with a count of 1.0 along the best state sequence. |
double |
tokenAccuracy(Sequence referenceOutput,
java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxLatticeDefault(Transducer t, Sequence inputSequence)
public MaxLatticeDefault(Transducer t, Sequence inputSequence, Sequence outputSequence)
public MaxLatticeDefault(Transducer t, Sequence inputSequence, Sequence outputSequence, int maxCaches)
Method Detail |
---|
public Transducer getTransducer()
getTransducer
in interface MaxLattice
public Sequence getInput()
public Sequence getProvidedOutput()
protected cc.mallet.fst.MaxLatticeDefault.ViterbiNode getViterbiNode(int ip, int stateIndex)
public double getDelta(int ip, int stateIndex)
getDelta
in interface MaxLattice
public java.util.List<SequencePairAlignment<java.lang.Object,cc.mallet.fst.MaxLatticeDefault.ViterbiNode>> bestViterbiNodeSequences(int n)
public java.util.List<SequencePairAlignment<java.lang.Object,Transducer.State>> bestStateAlignments(int n)
public SequencePairAlignment<java.lang.Object,Transducer.State> bestStateAlignment()
public java.util.List<Sequence<Transducer.State>> bestStateSequences(int n)
bestStateSequences
in interface MaxLattice
public Sequence<Transducer.State> bestStateSequence()
bestStateSequence
in interface MaxLattice
public java.util.List<SequencePairAlignment<java.lang.Object,java.lang.Object>> bestOutputAlignments(int n)
public SequencePairAlignment<java.lang.Object,java.lang.Object> bestOutputAlignment()
public java.util.List<Sequence<java.lang.Object>> bestOutputSequences(int n)
bestOutputSequences
in interface MaxLattice
public Sequence<java.lang.Object> bestOutputSequence()
bestOutputSequence
in interface MaxLattice
public double bestWeight()
public void incrementTransducer(Transducer.Incrementor incrementor)
public double elementwiseAccuracy(Sequence referenceOutput)
elementwiseAccuracy
in interface MaxLattice
public double tokenAccuracy(Sequence referenceOutput, java.io.PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |