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(); }
public MorphAn(Gramtab gramtab, string workDir) { _gramtab = gramtab; _workDir = workDir; }
public MRDFileReader(Gramtab gramtab) { _gramtab = gramtab; }