/// <summary>
        /// 设置字典词库
        /// </summary>
        /// <param name="pathConfig">地址</param>
        internal static void Set(DictTextPathConfig pathConfig)
        {
            Config = Get();

            Config.SimplifiedPath = string.IsNullOrEmpty(pathConfig.SimplifiedPath)
                ? "Dict/Text/simplified.txt"
                : pathConfig.SimplifiedPath;
            Config.TraditionalPath = string.IsNullOrEmpty(pathConfig.TraditionalPath)
                ? "Dict/Text/traditional.txt"
                : pathConfig.TraditionalPath;
            Config.InitialPath = string.IsNullOrEmpty(pathConfig.InitialPath)
                ? "Dict/Text/initial.txt"
                : pathConfig.InitialPath;
            Config.SpecialNumberPath = string.IsNullOrEmpty(pathConfig.SpecialNumberPath)
                ? "Dict/Text/specialNumber.txt"
                : pathConfig.SpecialNumberPath;
            Config.TranscodingNumberPath = string.IsNullOrEmpty(pathConfig.TranscodingNumberPath)
                ? "Dict/Text/transcodingNumber.txt"
                : pathConfig.TranscodingNumberPath;
        }
        /// <summary>
        ///
        /// </summary>
        public BaseWordService(EWordConfig wordConfig)
        {
            if (wordConfig == null)
            {
                wordConfig = new EWordConfig();
            }

            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            DictTextPathConfig   = DictTextPathConfig.Get();
            DictPinYinPathConfig = DictPinYinPathConfig.Get();
            DictTextPathConfig.Set(wordConfig.DictTextPathConfig);
            DictPinYinPathConfig.Set(wordConfig.DictPinYinPathConfig);
            if (DictConfig == null)
            {
                Reload(DictTypeEnum.Text);
            }

            if (DictPinYinConfig == null)
            {
                Reload(DictTypeEnum.PinYin);
            }
        }
 /// <summary>
 /// 读取字典词库
 /// </summary>
 /// <returns></returns>
 internal static DictTextPathConfig Get()
 {
     return(Config ?? (Config = new DictTextPathConfig()));
 }