public class StopList extends Object implements TermAnalyzerIF
Modifier and Type | Field and Description |
---|---|
protected double |
stopFactor |
protected Collection<String> |
stopList |
Constructor and Description |
---|
StopList(File file)
INTERNAL: Loads the stop list from a file.
|
StopList(String filename)
INTERNAL: Loads the stop list as a resource.
|
Modifier and Type | Method and Description |
---|---|
void |
analyzeTerm(Term term) |
void |
endAnalysis() |
boolean |
isStopWord(String word) |
void |
setStopFactor(double stopFactor) |
void |
startAnalysis(TermDatabase tdb) |
protected Collection<String> stopList
protected double stopFactor
public StopList(String filename)
public StopList(File file)
public void setStopFactor(double stopFactor)
public boolean isStopWord(String word)
public void analyzeTerm(Term term)
analyzeTerm
in interface TermAnalyzerIF
public void startAnalysis(TermDatabase tdb)
startAnalysis
in interface TermAnalyzerIF
public void endAnalysis()
endAnalysis
in interface TermAnalyzerIF