Package cc.mallet.fst
Class SumLatticeDefault.Factory
- java.lang.Object
-
- cc.mallet.fst.SumLatticeFactory
-
- cc.mallet.fst.SumLatticeDefault.Factory
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SumLatticeDefault
public static class SumLatticeDefault.Factory extends SumLatticeFactory implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SumLattice
newSumLattice(Transducer trans, Sequence input, Sequence output, Transducer.Incrementor incrementor, boolean saveXis, LabelAlphabet outputAlphabet)
Returns a SumLattice object to run forward-backward.-
Methods inherited from class cc.mallet.fst.SumLatticeFactory
newSumLattice, newSumLattice, newSumLattice, newSumLattice, newSumLattice, newSumLattice
-
-
-
-
Method Detail
-
newSumLattice
public SumLattice newSumLattice(Transducer trans, Sequence input, Sequence output, Transducer.Incrementor incrementor, boolean saveXis, LabelAlphabet outputAlphabet)
Description copied from class:SumLatticeFactory
Returns a SumLattice object to run forward-backward.- Specified by:
newSumLattice
in classSumLatticeFactory
- Parameters:
trans
- Transducer modelinput
- Input sequenceoutput
- If output is null then the forward-backward is not constrained to match the outputincrementor
- If null then do not update the weightssaveXis
- If true then save the transition weights as welloutputAlphabet
- If outputAlphabet is non-null, this will create a LabelVector for each position in the output sequence indicating the probability distribution over possible outputs at that time index.
-
-