use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestPersonRecognition method testChineseNameRecognition.
public void testChineseNameRecognition() throws Exception {
HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment();
System.out.println(segment.seg("编剧邵钧林和稽道青说"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestSegment method testNT.
public void testNT() throws Exception {
HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment().enableOrganizationRecognize(true);
System.out.println(segment.seg("张克智与潍坊地铁建设工程公司"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestSegment method testSeg.
public void testSeg() throws Exception {
HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment();
System.out.println(segment.seg("我遗忘我的密码了"));
}
Aggregations