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