com.hankcs.hanlp.summary
类 TextRankKeyword
java.lang.Object
com.hankcs.hanlp.summary.KeywordExtractor
com.hankcs.hanlp.summary.TextRankKeyword
public class TextRankKeyword
- extends KeywordExtractor
基于TextRank算法的关键字提取,适用于单文档
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextRankKeyword
public TextRankKeyword()
getKeywordList
public static List<String> getKeywordList(String document,
int size)
- 提取关键词
- 参数:
document - 文档内容size - 希望提取几个关键词
- 返回:
- 一个列表
getKeyword
public List<String> getKeyword(String content)
Copyright © 2014–2015 码农场. All rights reserved.