Package net.ontopia.topicmaps.classify
Class StopList
java.lang.Object
net.ontopia.topicmaps.classify.StopList
- All Implemented Interfaces:
TermAnalyzerIF
INTERNAL: A set of words considered "stop words" in a particular
language.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyzeTerm(Term term) voidbooleanisStopWord(String word) voidsetStopFactor(double stopFactor) void
-
Field Details
-
stopList
-
stopFactor
protected double stopFactor
-
-
Constructor Details
-
StopList
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
INTERNAL: Loads the stop list from a file. The format of the stop list is a plain text file with one word per line.
-
-
Method Details
-
setStopFactor
public void setStopFactor(double stopFactor) -
isStopWord
-
analyzeTerm
- Specified by:
analyzeTermin interfaceTermAnalyzerIF
-
startAnalysis
- Specified by:
startAnalysisin interfaceTermAnalyzerIF
-
endAnalysis
public void endAnalysis()- Specified by:
endAnalysisin interfaceTermAnalyzerIF
-