hanlp笔记 - 篇章理解

1. 关键词提取

  HanLP.extractKeyword(String content, int num); //第一个参数文本内容,第二个参数提取关键词个数

  

2. 自动摘要

  HanLP.extractSummary(String content, int num); //第一个参数文本内容,第二个参数提取句子个数

3. 短语提取

  HanLP.extractPhrase(String content, int num); //第一个参数文本内容,第二个参数提取短语个数

详细文档:http://hanlp.linrunsoft.com/doc/_build/html/extract.html#extract-summary

猜你喜欢

转载自www.cnblogs.com/sss-justdDoIt/p/9211428.html