예제 #1
0
        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));
        }
예제 #2
0
        public static WordList ReadFile(string dictionaryFilePath)
        {
            var affixFilePath = FindAffixFilePath(dictionaryFilePath);

            return(ReadFile(dictionaryFilePath, AffixReader.ReadFile(affixFilePath)));
        }