Beispiel #1
0
 /// <summary>
 /// 初始化的核心方法
 /// </summary>
 internal static void Initialize()
 {
     ///初始资源文件的使用环境
     ResourcesReader.InitializeResources(Service.PathService.Directory.ConfigLanguage, null);
     //Service.Logger.Log(.Add(new Log(LogType.Information,"初始资源文件的使用环境"));
     ///初始软件选项
     Service.Option.InitializeOption(Service.PathService.File.OptionFile);
     ///初始化一个供全局使用的分词类型对象(WordSeg)
     Service.JWordSegmentor = JWordSegmentorService.Creator(
         Service.PathService.Directory.Config,
         Service.PathService.Directory.SegData);
     ///初始化数据库服务
     Service.DbHelper = DbHelper.Creator(Service.PathService.File.SqlXml);
 }
 /// <summary>
 /// 初始Jeelu分词组件的工作环境
 /// </summary>
 internal static void InitializeWords()
 {
     ///初始Jeelu分词组件的工作环境
     Service.JWordSegmentor = JWordSegmentorService.Creator(Service.Path.Directory.Config, Service.Path.Directory.SegData);
 }
Beispiel #3
0
 public Demo()
 {
     InitializeComponent();
     _JWordSegmentor = JWordSegmentorService.Creator("", @"D:\Jeelu\Demo\BillboardQuickDemo\bin\Debug\segdata\");
 }
Beispiel #4
0
 /// <summary>
 /// 词库初始化
 /// </summary>
 private void Init()
 {
     this.JWordSegmentor = JWordSegmentorService.Creator("", @"segdata\");
 }