Example #1
0
        private void _rebuildDAWG(string path)
        {
            MRDFileReader mrdFile = new MRDFileReader(_gramtab);

            mrdFile.LoadMrd(Path.Combine(_workDir, @"Dicts\morphs.mrd"));
            _dawg = CreateDAWG(mrdFile);
            _dawg.SaveTo(File.Create(path), WritePayload);
        }
Example #2
0
        private static void ParseMRDFile()
        {
            MRDFileReader mrdFile = new MRDFileReader(gramtab);

            mrdFile.LoadMrd(Path.Combine(workDir, @"Dicts\morphs.mrd"));
            mrdFile.PrintStat();
            mrdFile.PrintStat2();

            //mrdFile.PrintLemma("КЛЕ");
            mrdFile.PrintLemma("ГЛАЗ");
            //mrdFile.PrintLemma("ЗАМ");

            mrdFile.WriteAllForms(Path.Combine(workDir, "forms.txt"));
        }