盘古分词demo,盘古分词怎么用

1、下载PanGu.dll

      dll地址:http://download.csdn.net/detail/dhfekl/7493687

2、将PanGu.dll和词库引入到项目

      最新词库地址:http://download.csdn.net/detail/dhfekl/7493711

3、初始化

     using PanGu;

     Segment.Init();

4、分词

     string str="盘古分词demo2";
    Segment segment = new Segment();
    ICollection<WordInfo> words = segment.DoSegment(str);


结果演示:


posted @ 2017-05-08 15:56  llguanli  阅读(350)  评论(0)    收藏  举报