com.hankcs.hanlp.utility
类 SentencesUtil
java.lang.Object
com.hankcs.hanlp.utility.SentencesUtil
public class SentencesUtil
- extends Object
文本断句
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentencesUtil
public SentencesUtil()
toSentenceList
public static List<String> toSentenceList(String content)
- 将文本切割为句子
- 参数:
content -
- 返回:
toSentenceList
public static List<String> toSentenceList(char[] chars)
hasNature
public static boolean hasNature(List<Term> sentence,
Nature nature)
- 句子中是否含有词性
- 参数:
sentence - nature -
- 返回:
Copyright © 2014–2015 码农场. All rights reserved.