public static WordList ReadFile(string dictionaryFilePath, string affixFilePath) { var affixBuilder = new AffixConfig.Builder(); var affix = AffixReader.ReadFile(affixFilePath, affixBuilder); var wordListBuilder = new WordList.Builder(affix, affixBuilder.FlagSetDeduper, affixBuilder.MorphSetDeduper, affixBuilder.StringDeduper); return(ReadFile(dictionaryFilePath, affix, wordListBuilder)); }
public static WordList ReadFile(string dictionaryFilePath) { var affixFilePath = FindAffixFilePath(dictionaryFilePath); return(ReadFile(dictionaryFilePath, AffixReader.ReadFile(affixFilePath))); }