该项目是搜索引擎中的前期文本预处理阶段,可以将爬取到的html文件提取纯文本并返回词组。由于本人能力有限,如有Bug请谅解。
名称 | 描述 | 版本号 |
---|---|---|
IntelliJ IDEA | 开发IDE | 2021.1 |
JDK | Java集成环境 | 11.0 |
fastjson | 第三方jar包 | 1.2.76 |
package com.zhanghongshen.textpreprocess;
public class AliyunNlp {
/**
* 个人参数
*/
private String ResourceOwnerAccount = "";
private String AccessKeyId = "";
private String AccessKeySecret = "";
}
- 中文文档处理时,在分词阶段由于阿里云NLP的中文分词功能调用频率限制,如果在极小一段时间内请求过多会有很大概率不成功;
- 英文文档处理时,Porter Stemming提取词干不准确会出现单词还原错误的情况。