|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.summary.TextRankSentence
public class TextRankSentence
TextRank 自动摘要
| 构造方法摘要 | |
|---|---|
TextRankSentence(List<List<String>> docs)
|
|
| 方法摘要 | |
|---|---|
static String |
getSummary(String document,
int max_length)
一句话调用接口 |
int[] |
getTopSentence(int size)
获取前几个关键句子 |
static List<String> |
getTopSentenceList(String document,
int size)
一句话调用接口 |
static void |
main(String[] args)
|
static List<String> |
permutation(List<String> resultList,
List<String> sentenceList)
|
static List<String> |
pick_sentences(List<String> resultList,
int max_length)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TextRankSentence(List<List<String>> docs)
| 方法详细信息 |
|---|
public int[] getTopSentence(int size)
size - 要几个
public static void main(String[] args)
public static List<String> getTopSentenceList(String document,
int size)
document - 目标文档size - 需要的关键句的个数
public static String getSummary(String document,
int max_length)
document - 目标文档max_length - 需要摘要的长度
public static List<String> permutation(List<String> resultList,
List<String> sentenceList)
public static List<String> pick_sentences(List<String> resultList,
int max_length)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||