edu.stanford.nlp.process
Class StopList

java.lang.Object
  |
  +--edu.stanford.nlp.process.StopList

public class StopList
extends Object

Simple stoplist class.


Constructor Summary
StopList()
           
StopList(File list)
          Constructs a new stoplist from the contents of a file.
 
Method Summary
 boolean contains(String word)
          Returns true if the word is in the stoplist.
 boolean contains(Word word)
          Returns true if the word is in the stoplist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopList

public StopList()

StopList

public StopList(File list)
Constructs a new stoplist from the contents of a file. It is assumed that the file contains stopwords, one on a line. The stopwords need not be in any order.

Method Detail

contains

public boolean contains(Word word)
Returns true if the word is in the stoplist.


contains

public boolean contains(String word)
Returns true if the word is in the stoplist.



Stanford NLP Group