@Test public void testProject() { System.out.println("Testing Project..."); // Project on Input label Fst fst = createFst(); Fst p = createPi(); Project.apply(fst, ProjectType.INPUT); Assert.assertTrue(fst.equals(p)); // Project on Output label fst = createFst(); p = createPo(); Project.apply(fst, ProjectType.OUTPUT); Assert.assertTrue(fst.equals(p)); System.out.println("Testing Project Completed!\n"); }
ArcSort.apply(result, new OLabelCompare()); result = Compose.compose(result, g2pmodel, s, true); Project.apply(result, ProjectType.OUTPUT); if (nbest == 1) { result = NShortestPaths.get(result, 1, false);
ArcSort.apply(result, new OLabelCompare()); result = Compose.compose(result, g2pmodel, s, true); Project.apply(result, ProjectType.OUTPUT); if (nbest == 1) { result = NShortestPaths.get(result, 1, false);