public abstract class KeywordsExtractor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ISegment |
seg
the ISegment object
|
| Constructor and Description |
|---|
KeywordsExtractor(ISegment seg)
construct method
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filter(IWord word)
word item filter
|
abstract List<String> |
getKeywords(Reader reader)
get the keywords list from a reader
|
List<String> |
getKeywordsFromFile(String file)
get the keywords list from a file
|
List<String> |
getKeywordsFromString(String doc)
get the keywords list from a string
|
ISegment |
getSeg() |
void |
setSeg(ISegment seg) |
protected ISegment seg
public KeywordsExtractor(ISegment seg)
seg - protected boolean filter(IWord word)
word - public List<String> getKeywordsFromString(String doc) throws IOException
doc - IOExceptionpublic List<String> getKeywordsFromFile(String file) throws IOException
file - IOExceptionpublic abstract List<String> getKeywords(Reader reader) throws IOException
reader - IOExceptionpublic ISegment getSeg()
public void setSeg(ISegment seg)
Copyright © 2017. All Rights Reserved.