net.ontopia.topicmaps.classify
Class StopList
java.lang.Object
net.ontopia.topicmaps.classify.StopList
- All Implemented Interfaces:
- TermAnalyzerIF
public class StopList
- extends Object
- implements TermAnalyzerIF
INTERNAL: A set of words considered "stop words" in a particular
language.
Constructor Summary |
StopList(File file)
INTERNAL: Loads the stop list from a file. |
StopList(String filename)
INTERNAL: Loads the stop list as a resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stopList
protected Collection stopList
stopFactor
protected double stopFactor
StopList
public StopList(String filename)
- INTERNAL: Loads the stop list as a resource. The format of the
stop list is a plain text file with one word per line.
StopList
public StopList(File file)
- INTERNAL: Loads the stop list from a file. The format of the stop
list is a plain text file with one word per line.
setStopFactor
public void setStopFactor(double stopFactor)
isStopWord
public boolean isStopWord(String word)
analyzeTerm
public void analyzeTerm(Term term)
- Specified by:
analyzeTerm
in interface TermAnalyzerIF
startAnalysis
public void startAnalysis(TermDatabase tdb)
- Specified by:
startAnalysis
in interface TermAnalyzerIF
endAnalysis
public void endAnalysis()
- Specified by:
endAnalysis
in interface TermAnalyzerIF
Copyright © 2000-2012 Ontopia.