public void SetUp()
        {
            var kanjidict      = JDict.KanjiDict.Create(TestDataPaths.KanjiDic);
            var kradfile       = new JDict.Kradfile(TestDataPaths.Kradfile, Encoding.UTF8);
            var radkfile       = new Radkfile(TestDataPaths.Radkfile, Encoding.UTF8);
            var kanaProperties = new KanaProperties2(
                TestDataPaths.Kana,
                Encoding.UTF8);

            this.mecab = new MeCabIpadic(new MeCabParam
            {
                DicDir = TestDataPaths.Ipadic,
                UseMemoryMappedFile = true
            });
            this.jmdict = JDict.JMDictLookup.Create(TestDataPaths.JMDict, TestDataPaths.JMDictCache);
            var parser = new SentenceParser(mecab, jmdict, kanaProperties);

            glosser = new AutoGlosserNext(parser, jmdict, kanaProperties);
        }
Exemplo n.º 2
0
 public AutoGlosserDataSource(IAutoGlosser autoglosser)
 {
     this.autoglosser = autoglosser;
 }