net.ontopia.topicmaps.classify
Class StopList

java.lang.Object
  extended by 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.


Field Summary
protected  double stopFactor
           
protected  java.util.Collection stopList
           
 
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.
 
Method Summary
 void analyzeTerm(Term term)
           
 void endAnalysis()
           
 boolean isStopWord(java.lang.String word)
           
 void setStopFactor(double stopFactor)
           
 void startAnalysis(TermDatabase tdb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stopList

protected java.util.Collection stopList

stopFactor

protected double stopFactor
Constructor Detail

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.

Method Detail

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.