INNER CODE UNIT · Java
NLPSegment
jsksxs360/AHANLP · src/me/xiaosheng/chnlp/AHANLP.java:67
public static List<Term> NLPSegment(String content, boolean filterStopWord) {
return Segment.NLPSegment(content, filterStopWord);
}
/**
* 分词断句<br>
* 按句号、问好、感叹号分隔句子,逗号、分号不分隔
* @param segType 分词器类型(Standard 或 NLP)
* @param content 文本
* @param filterStopWord 滤掉停用词
* @return 句子列表,每个句子由一个单词列表组成
*/
public static List<List<Term>> seg2sentence(String segType, String content, boolean filterStopWord) {
return Segment.seg2sentence(segType, content, filterStopWord);
}
/**
* 分词断句