Examples of ILabelCompare


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

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

    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
Copyright © 2018 www.massapi.com. 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.