| | |
| | | //import com.qxueyou.scc.base.service.IConfigService; |
| | | |
| | | /** |
| | | * 使用远程服务HanLP引擎,处理文本,包括分词,转拼音,提取摘要,词频统计,关键字提取 |
| | | * 使用远程服务HanLP引擎,处理文本,包括分词,转拼音,提取摘要,词频统计,关键字提取 |
| | | * @author xiadehu |
| | | * |
| | | */ |
| | |
| | | |
| | | |
| | | /** |
| | | * 分词,如果传入null,则返回空 |
| | | * @param text 原文 |
| | | * @return 分词后的结果 |
| | | * 分词,如果传入null,则返回空 |
| | | * @param text 原文 |
| | | * @return 分词后的结果 |
| | | */ |
| | | public static String segment(String text){ |
| | | if (client == null) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 转拼音,无分隔符 |
| | | * @param text 原文 |
| | | * @return 转拼音的结果 |
| | | * 转拼音,无分隔符 |
| | | * @param text 原文 |
| | | * @return 转拼音的结果 |
| | | */ |
| | | public static String toPinyin(String text){ |
| | | if (client == null) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 转拼音 |
| | | * @param text 原文 |
| | | * @param seperator 分隔符 |
| | | * @return 转拼音的结果 |
| | | * 转拼音 |
| | | * @param text 原文 |
| | | * @param seperator 分隔符 |
| | | * @return 转拼音的结果 |
| | | */ |
| | | public static String toPinyin(String text,String seperator){ |
| | | if (client == null) { |