idl.tmt.representation.transformations
Class StopListFilter

java.lang.Object
  |
  +--idl.tmt.representation.transformations.StopListFilter
All Implemented Interfaces:
CollectionTransformation

public class StopListFilter
extends java.lang.Object
implements CollectionTransformation

Created on Jun 14, 2004

Author:
jelsas

Field Summary
private  boolean hasBeenRun
           
private  java.util.Set stopWords
           
private  java.lang.String stopWordsFile
           
private  int termsAfter
           
private  int termsBefore
           
 
Fields inherited from interface idl.tmt.representation.transformations.CollectionTransformation
STATUS_COMPLETE, STATUS_NONE
 
Constructor Summary
StopListFilter()
           
 
Method Summary
 java.lang.String getStatus()
          Provides a short string description of the collection transformation.
 java.lang.String getStopWordsFile()
           
 boolean makesMatrixDense()
          Indicates whether the modification to the collection by this transformation makes the underlying matrix a dense matrix.
 void setStopWordsFile(java.lang.String stopList)
           
 java.lang.String toString()
           
 void transformCollection(IndexedCollection collection)
          general method for transforming the given collection.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

hasBeenRun

private boolean hasBeenRun

stopWordsFile

private java.lang.String stopWordsFile

stopWords

private java.util.Set stopWords

termsBefore

private int termsBefore

termsAfter

private int termsAfter
Constructor Detail

StopListFilter

public StopListFilter()
Method Detail

transformCollection

public void transformCollection(IndexedCollection collection)
Description copied from interface: CollectionTransformation
general method for transforming the given collection. the implementors should modify this colleciton object, not create a new one.
Specified by:
transformCollection in interface CollectionTransformation
Following copied from interface: idl.tmt.representation.transformations.CollectionTransformation
Parameters:
collection -  

makesMatrixDense

public boolean makesMatrixDense()
Description copied from interface: CollectionTransformation
Indicates whether the modification to the collection by this transformation makes the underlying matrix a dense matrix. This method is used to indicated if the matrix should be written to disk after this transformation is performed.
Specified by:
makesMatrixDense in interface CollectionTransformation
Following copied from interface: idl.tmt.representation.transformations.CollectionTransformation
Returns:
 

getStatus

public java.lang.String getStatus()
Description copied from interface: CollectionTransformation
Provides a short string description of the collection transformation. Implementors should return the CollectionTransformation.STAUS_NONE if the transformation has not yet been run.
Specified by:
getStatus in interface CollectionTransformation

setStopWordsFile

public void setStopWordsFile(java.lang.String stopList)
                      throws java.io.IOException

getStopWordsFile

public java.lang.String getStopWordsFile()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object