Пример #1
0
        public static AffixConfig Read(IHunspellLineReader reader, AffixConfig.Builder builder = null)
        {
            var readerInstance = new AffixReader(builder, reader);

            readerInstance.Read();

            return(readerInstance.Builder.MoveToImmutable());
        }
Пример #2
0
        public static WordList Read(Stream dictionaryStream, Stream affixStream)
        {
            var affixBuilder    = new AffixConfig.Builder();
            var affix           = AffixReader.Read(affixStream, affixBuilder);
            var wordListBuilder = new WordList.Builder(affix, affixBuilder.FlagSetDeduper, affixBuilder.MorphSetDeduper, affixBuilder.StringDeduper);

            return(Read(dictionaryStream, affix, wordListBuilder));
        }