use of com.hankcs.hanlp.seg.common.wrapper.SegmentWrapper in project HanLP by hankcs.
the class TestSegment method testWrapper.
public void testWrapper() throws Exception {
SegmentWrapper wrapper = new SegmentWrapper(new BufferedReader(new StringReader("中科院预测科学研究中心学术委员会\nhaha")), StandardTokenizer.SEGMENT);
Term fullTerm;
while ((fullTerm = wrapper.next()) != null) {
System.out.println(fullTerm);
}
}
Aggregations