Search in sources :

Example 1 with DoubleArrayTrieSegment

use of com.hankcs.hanlp.seg.Other.DoubleArrayTrieSegment in project HanLP by hankcs.

the class TestSegment method testACSegment.

public void testACSegment() throws Exception {
    Segment segment = new DoubleArrayTrieSegment();
    segment.enablePartOfSpeechTagging(true);
    System.out.println(segment.seg("江西鄱阳湖干枯,中国最大淡水湖变成大草原"));
}
Also used : DoubleArrayTrieSegment(com.hankcs.hanlp.seg.Other.DoubleArrayTrieSegment) Segment(com.hankcs.hanlp.seg.Segment) DoubleArrayTrieSegment(com.hankcs.hanlp.seg.Other.DoubleArrayTrieSegment) CRFSegment(com.hankcs.hanlp.seg.CRF.CRFSegment) DijkstraSegment(com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment) ViterbiSegment(com.hankcs.hanlp.seg.Viterbi.ViterbiSegment)

Aggregations

CRFSegment (com.hankcs.hanlp.seg.CRF.CRFSegment)1 DijkstraSegment (com.hankcs.hanlp.seg.Dijkstra.DijkstraSegment)1 DoubleArrayTrieSegment (com.hankcs.hanlp.seg.Other.DoubleArrayTrieSegment)1 Segment (com.hankcs.hanlp.seg.Segment)1 ViterbiSegment (com.hankcs.hanlp.seg.Viterbi.ViterbiSegment)1