public class TextRankWrapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TextRankWrapper.LANG_CODE |
| Constructor and Description |
|---|
TextRankWrapper() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
rank(String text,
Locale lang,
int k)
get the top k keywords of a text by using the TextRank algorithm
|
public List<String> rank(String text, Locale lang, int k)
text - the text where keywords should be foundlang - the language of the textk - the number of keywords to be returnedCopyright © 2017. All rights reserved.