/// <summary> /// 重载内容词库 /// </summary> private void ReloadTextDict() { DictConfig = new DictTextConfig() { Simplified = GetContent(DictTextPathConfig.SimplifiedPath.ConvertStrToList <string>('/')), Traditional = GetContent(DictTextPathConfig.TraditionalPath.ConvertStrToList <string>('/')), Initial = GetContent(DictTextPathConfig.InitialPath.ConvertStrToList <string>('/')), SpecialNumber = GetContent(DictTextPathConfig.SpecialNumberPath.ConvertStrToList <string>('/')), TranscodingNumber = GetContent(DictTextPathConfig.TranscodingNumberPath.ConvertStrToList <string>('/')) }; }
/// <summary> /// 重载内容词库 /// </summary> private void ReloadTextDict() { try { DictConfig = new DictTextConfig() { Simplified = GetContent(DictTextPathConfig.SimplifiedPath.ConvertStrToList <string>('/')), Traditional = GetContent(DictTextPathConfig.TraditionalPath.ConvertStrToList <string>('/')), Initial = GetContent(DictTextPathConfig.InitialPath.ConvertStrToList <string>('/')), SpecialNumber = GetContent(DictTextPathConfig.SpecialNumberPath.ConvertStrToList <string>('/')), TranscodingNumber = GetContent(DictTextPathConfig.TranscodingNumberPath.ConvertStrToList <string>('/')) }; } catch (System.Exception ex) { throw new BusinessException($"词语词库异常:{ex}"); } }