Пример #1
0
        static void Main(string[] args)
        {
            workDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            // get from ParseMRD\ParseMRD\bin\debug
            while (!Directory.Exists(Path.Combine(workDir, "Data")))
            {
                workDir = Path.GetDirectoryName(workDir);
            }
            workDir = Path.Combine(workDir, "Data");

            gramtab = new Gramtab();
            gramtab.LoadGramtab(Path.Combine(workDir, @"Dicts\rgramtab.tab"));

            // Здесь выбираю тестовый метод, смотря над чем работаю
            ParseMRDFile();
            //LoadDAWG();
            //DAWGTest();
            //SetTextAccent(@"Texts\text1.txt");

            Console.WriteLine("Hit a key...");
            Console.ReadKey();
        }
Пример #2
0
 public MorphAn(Gramtab gramtab, string workDir)
 {
     _gramtab = gramtab;
     _workDir = workDir;
 }
Пример #3
0
 public MRDFileReader(Gramtab gramtab)
 {
     _gramtab = gramtab;
 }