datapreparation.stopword
Class Stopword

java.lang.Object
  extended by control.Operation
      extended by datapreparation.TextOperation
          extended by datapreparation.stopword.Stopword

public class Stopword
extends TextOperation

Class implementing the stopword removal operation. Given the language used in the dataset, all stopwords are removed. Stopwords are given in the files: stopwords_en.txt and stopwords_no.txt.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
Stopword()
           
 
Method Summary
 java.util.ArrayList getProperties()
          Method for getting the properties.
 void performOperation(DataSet dataSet)
          Method for performing the operation.
 Text removeStopwordsInText(Text text)
          Method for removing the stopwords in a given text.
 void setProperties(java.util.ArrayList properties)
          Methods for setting the properties.
 
Methods inherited from class control.Operation
getLogResult, setLogResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stopword

public Stopword()
Method Detail

performOperation

public void performOperation(DataSet dataSet)
Method for performing the operation.

Specified by:
performOperation in class Operation
Parameters:
dataSet - The dataset

removeStopwordsInText

public Text removeStopwordsInText(Text text)
Method for removing the stopwords in a given text.

Parameters:
text - The text
Returns:
The new text

getProperties

public java.util.ArrayList getProperties()
Method for getting the properties.

Specified by:
getProperties in class Operation
Returns:
List of properties

setProperties

public void setProperties(java.util.ArrayList properties)
Methods for setting the properties.

Specified by:
setProperties in class Operation
Parameters:
properties - List of properties