lempinen.neatseeker.core
Class StopWordList

java.lang.Object
  |
  +--lempinen.neatseeker.core.StopWordList

public class StopWordList
extends java.lang.Object

Class for reading and querying a stopword list.

The StopWordList class reads in a text file specified in the constructor argument, parses the file using StreamTokenizer and constructs a TreeMap that holds the stopword list.

The class provides a single method for determining whether a word is on a stopword list or not.

Version:
$Id: StopWordList.java,v 1.1 2000/09/23 11:21:23 lempinen Exp $
Author:
Sami Lempinen

Field Summary
protected  java.util.TreeMap stopwords
          The TreeMap that holds the stopword list.
 
Constructor Summary
StopWordList(java.lang.String textfile)
          Creates a new StopWordList, based on the list in textfile.
 
Method Summary
 boolean isStopWord(java.lang.String word)
          Returns true if word is on the stopword list.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

stopwords

protected java.util.TreeMap stopwords
The TreeMap that holds the stopword list.
Constructor Detail

StopWordList

public StopWordList(java.lang.String textfile)
             throws java.io.IOException
Creates a new StopWordList, based on the list in textfile.
Method Detail

isStopWord

public boolean isStopWord(java.lang.String word)
Returns true if word is on the stopword list.