use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestNTRecognition method testSeg.
public void testSeg() throws Exception {
HanLP.Config.enableDebug();
DijkstraSegment segment = new DijkstraSegment();
segment.enableCustomDictionary(false);
segment.enableOrganizationRecognize(true);
System.out.println(segment.seg("东欧的球队"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestMakeJapaneseName method testRecognize.
public void testRecognize() throws Exception {
HanLP.Config.enableDebug();
DijkstraSegment segment = new DijkstraSegment();
System.out.println(segment.seg("我叫大杉亚依里"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestMakeJapaneseName method testSeg.
public void testSeg() throws Exception {
HanLP.Config.enableDebug();
DijkstraSegment segment = new DijkstraSegment();
segment.enableJapaneseNameRecognize(true);
System.out.println(segment.seg("林志玲亮相网友:确定不是波多野结衣?"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestMakeTranslateName method testNonRec.
public void testNonRec() throws Exception {
HanLP.Config.enableDebug();
DijkstraSegment segment = new DijkstraSegment();
segment.enableTranslatedNameRecognize(true);
System.out.println(segment.seg("汤姆和杰克逊"));
}
use of com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment in project HanLP by hankcs.
the class TestMakeCompanyCorpus method testCase.
public void testCase() throws Exception {
HanLP.Config.enableDebug();
DijkstraSegment segment = new DijkstraSegment();
segment.enableOrganizationRecognize(true);
System.out.println(segment.seg("黑龙江建筑职业技术学院近百学生发生冲突"));
}
Aggregations