Esempio n. 1
0
 public WordNetPlugin(string wordNetDirectory)
 {
     try
     {
         string spellPath = wordNetDirectory + "\\spell";
         string dictPath  = wordNetDirectory + "\\dict\\";
         _wordNet  = new WN(dictPath);
         _hunspell = new Hunspell(Path.Combine(spellPath, "en_us.aff"), Path.Combine(spellPath, "en_us.dic"));
         _thes     = new MyThes(Path.Combine(spellPath, "th_en_US_new.dat"));
         _hyphen   = new Hyphen(Path.Combine(spellPath, "hyph_en_US.dic"));
     }
     catch (Exception ex)
     {
         VirtualAssistant.Instance.Logger.Error(ex);
     }
 }