Package cc.mallet.fst

Examples of cc.mallet.fst.MaxLattice


            new FeatureVector((Alphabet) crf.getInputAlphabet(),
                new double[] { 1 }),
            new FeatureVector((Alphabet) crf.getInputAlphabet(),
                new double[] { 1 }), });

    MaxLattice lattice = new MaxLatticeDefault(crf, fvs);
    Sequence<Transducer.State> viterbiPath = lattice.bestStateSequence();
    // We start in state0
    assertTrue(viterbiPath.get(0) == crf.getState(0));
    // We go to state1
    assertTrue(viterbiPath.get(1) == crf.getState(1));
    // And on through a self-transition to state1 again
View Full Code Here

TOP

Related Classes of cc.mallet.fst.MaxLattice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.