static private void LoadDictionary() { _WordDictionary = new 微博舆论.Dict.WordDictionary(); string dir = Setting.PanGuSettings.Config.GetDictionaryPath(); _WordDictionary.Load(dir + "Dict.Dct"); _ChsName = new 微博舆论.Dict.ChsName(); _ChsName.LoadChsName(Setting.PanGuSettings.Config.GetDictionaryPath()); _WordDictionary.ChineseName = _ChsName; _StopWord = new 微博舆论.Dict.StopWord(); _StopWord.LoadStopwordsDict(dir + "Stopword.txt"); _Synonym = new 微博舆论.Dict.Synonym(); if (Setting.PanGuSettings.Config.MatchOptions.SynonymOutput) { _Synonym.Load(dir); } _DictLoader = new 微博舆论.Dict.DictionaryLoader(Setting.PanGuSettings.Config.GetDictionaryPath()); }
private static void LoadDictionary() { _WordDictionary = new 微博舆论.Dict.WordDictionary(); string dir = Setting.PanGuSettings.Config.GetDictionaryPath(); _WordDictionary.Load(dir + "Dict.Dct"); _ChsName = new 微博舆论.Dict.ChsName(); _ChsName.LoadChsName(Setting.PanGuSettings.Config.GetDictionaryPath()); _WordDictionary.ChineseName = _ChsName; _StopWord = new 微博舆论.Dict.StopWord(); _StopWord.LoadStopwordsDict(dir + "Stopword.txt"); _Synonym = new 微博舆论.Dict.Synonym(); if (Setting.PanGuSettings.Config.MatchOptions.SynonymOutput) { _Synonym.Load(dir); } _DictLoader = new 微博舆论.Dict.DictionaryLoader(Setting.PanGuSettings.Config.GetDictionaryPath()); }