edu.stanford.nlp.process
Class StoplistFilter

java.lang.Object
  |
  +--edu.stanford.nlp.process.StoplistFilter
All Implemented Interfaces:
Processor

public class StoplistFilter
extends Object
implements Processor

Filter which removes stop-listed words.

Author:
Sepandar Kamvar (sdkamvar@stanford.edu)

Constructor Summary
StoplistFilter()
          Create a new StopListFilter with a small default stoplist
StoplistFilter(StopList stoplist)
          Create a new StoplistFilter with the given StopList.
StoplistFilter(String stoplistfile)
          Create a new StopListFilter with the stoplist given in stoplistfile
 
Method Summary
 Document process(Document in)
          Returns a new Document with the same meta-data as in and the same words except those on the stop list this filter was constructed with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoplistFilter

public StoplistFilter()
Create a new StopListFilter with a small default stoplist


StoplistFilter

public StoplistFilter(String stoplistfile)
Create a new StopListFilter with the stoplist given in stoplistfile


StoplistFilter

public StoplistFilter(StopList stoplist)
Create a new StoplistFilter with the given StopList.

Method Detail

process

public Document process(Document in)
Returns a new Document with the same meta-data as in and the same words except those on the stop list this filter was constructed with.

Specified by:
process in interface Processor
See Also:
DocumentProcessor


Stanford NLP Group