@Test public void testRmEpsilon() throws NumberFormatException, IOException, ClassNotFoundException, URISyntaxException { URL url = getClass().getResource("algorithms/rmepsilon/A.fst.txt"); File parent = new File(url.toURI()).getParentFile(); String path = new File(parent, "A").getPath(); Fst fst = Convert.importFst(path, new ProbabilitySemiring()); path = new File(parent, "fstrmepsilon.fst.ser").getPath(); Fst fstRmEps = Fst.loadModel(path); Fst rmEpsilon = RmEpsilon.get(fst); assertThat(fstRmEps, equalTo(rmEpsilon)); } }
result = RmEpsilon.get(result); ArrayList<Path> paths = findAllPaths(result, nbest, skipSeqs, tie);
result = RmEpsilon.get(result); ArrayList<Path> paths = findAllPaths(result, nbest, skipSeqs, tie);