public List<DecompoundedWord> getSplits(String word) throws ResourceInitializationException { return splitter.split(word).getAllSplits(); }
public void initializeSplitterResource(String dictionaryLocation) { splitter = new JWordSplitterAlgorithm(); splitter.setDictionary(new SimpleDictionary(new File(dictionaryLocation))); isInitialized = true; }