public class TextRankKeyphraseExtractor extends KeyphraseExtractor
| Modifier and Type | Field and Description |
|---|---|
protected int |
autoMinLength
auto append the words with a length over the specifield value
as a phrase
|
static float |
D |
protected int |
keywordsNum |
protected int |
maxIterateNum |
protected int |
maxWordsNum
max phrase length
|
protected int |
windowSize |
seg| Constructor and Description |
|---|
TextRankKeyphraseExtractor(ISegment seg) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAutoMinLength() |
List<String> |
getKeyphrase(Reader reader)
get the keyphrase list from a reader
|
int |
getKeywordsNum() |
int |
getMaxIterateNum() |
int |
getMaxWordsNum() |
int |
getWindowSize() |
void |
setAutoMinLength(int autoMinLength) |
void |
setKeywordsNum(int keywordsNum) |
void |
setMaxIterateNum(int maxIterateNum) |
void |
setMaxWordsNum(int maxPhraseLength) |
void |
setWindowSize(int windowSize) |
filter, getKeyphraseFromFile, getKeyphraseFromString, getSeg, setSegpublic static final float D
protected int keywordsNum
protected int maxIterateNum
protected int windowSize
protected int autoMinLength
protected int maxWordsNum
public TextRankKeyphraseExtractor(ISegment seg)
public List<String> getKeyphrase(Reader reader) throws IOException
KeyphraseExtractorgetKeyphrase in class KeyphraseExtractorIOExceptionpublic int getKeywordsNum()
public void setKeywordsNum(int keywordsNum)
public int getMaxIterateNum()
public void setMaxIterateNum(int maxIterateNum)
public int getWindowSize()
public void setWindowSize(int windowSize)
public int getAutoMinLength()
public void setAutoMinLength(int autoMinLength)
public int getMaxWordsNum()
public void setMaxWordsNum(int maxPhraseLength)
Copyright © 2017. All Rights Reserved.