コード例 #1
0
 private void LoadDict()
 {
     if (gren == null)
     {
         lock (gren_lock)
         {
             string dict = System.Configuration.ConfigurationSettings.AppSettings["dictionary_path"];
             Console.WriteLine("Loading dictionary {0}", dict);
             gren = new SolarixGrammarEngineNET.GrammarEngine2();
             gren.Load(dict, true);
         }
     }
 }
コード例 #2
0
 private void LoadDict()
 {
     if (gren == null)
     {
         lock (gren_lock)
         {
             string dict = System.Configuration.ConfigurationSettings.AppSettings["dictionary_path"];
             Console.WriteLine("Loading dictionary {0}", dict);
             gren = new SolarixGrammarEngineNET.GrammarEngine2();
             gren.Load(dict, true);
         }
     }
 }