Package edu.cmu.sphinx.fst.operations

Examples of edu.cmu.sphinx.fst.operations.ILabelCompare


        skipSeqs.add(se);
        skipSeqs.add(skip);
        skipSeqs.add("-");
        // keep an augmented copy (for compose)
        Compose.augment(0, g2pmodel, g2pmodel.getSemiring());
        ArcSort.apply(g2pmodel, new ILabelCompare());

        String[] isyms = g2pmodel.getIsyms();

        loadClusters(isyms);

        // get epsilon filter for composition
        epsilonFilter = Compose.getFilter(g2pmodel.getIsyms(),
                g2pmodel.getSemiring());
        ArcSort.apply(epsilonFilter, new ILabelCompare());
    }
View Full Code Here


    public void testArcSort() {
        // Input label sort test
        Fst fst1 = createUnsorted();
        Fst fst2 = createIsorted();
        assertThat(fst1, not(equalTo(fst2)));
        apply(fst1, new ILabelCompare());
        assertThat(fst1, equalTo(fst2));

        // Output label sort test
        fst1 = createUnsorted();
        fst2 = createOsorted();
View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.fst.operations.ILabelCompare

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.