net.ontopia.topicmaps.classify
Class StopList
java.lang.Object
net.ontopia.topicmaps.classify.StopList
- All Implemented Interfaces:
- TermAnalyzerIF
public class StopList
- extends java.lang.Object
- implements TermAnalyzerIF
INTERNAL: A set of words considered "stop words" in a particular
language.
Constructor Summary |
StopList(java.io.File file)
INTERNAL: Loads the stop list from a file. |
StopList(java.lang.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 java.util.Collection stopList
stopFactor
protected double stopFactor
StopList
public StopList(java.lang.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(java.io.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(java.lang.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.