CmuSyllabifierFactory { public static Syllabifier create() { return ModelFactory.createSyllFromClasspath("syllg_cmu_default.dat"); }  static Syllabifier create();  }
@Test public void shouldCreate() throws Exception { Syllabifier syllabifier = CmuSyllabifierFactory.create(); assertEquals(Lists.newArrayList("ste", "phen"), syllabifier.splitIntoSyllables("stephen")); assertEquals(Lists.newArrayList("STE", "PHEN"), syllabifier.splitIntoSyllables("STEPHEN")); assertEquals(Lists.newArrayList("car", "ner", "ie"), syllabifier.splitIntoSyllables("carnerie")); List<String> karoneous = syllabifier.splitIntoSyllables("karoneous"); log.info("Karoneous got " + karoneous); int count = syllabifier.syllableCount("stephen"); assertEquals(2, count); }