public class SentencesUtil extends Object
| 构造器和说明 |
|---|
SentencesUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
hasNature(List<Term> sentence,
Nature nature)
句子中是否含有词性
|
static List<String> |
toSentenceList(char[] chars) |
static List<String> |
toSentenceList(char[] chars,
boolean shortest) |
static List<String> |
toSentenceList(String content)
将文本切割为最细小的句子(逗号也视作分隔符)
|
static List<String> |
toSentenceList(String content,
boolean shortest)
文本分句
|
Copyright © 2014–2019 码农场. All rights reserved.