public class SentencesUtil extends Object
| Constructor and Description |
|---|
SentencesUtil() |
| Modifier and Type | Method and Description |
|---|---|
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)
文本分句
|
public static List<String> toSentenceList(String content)
content - public static List<String> toSentenceList(String content, boolean shortest)
content - 文本shortest - 是否切割为最细的单位(将逗号也视作分隔符)Copyright © 2014–2021 码农场. All rights reserved.