datapreparation.stemming
Class Stemming

java.lang.Object
  extended by control.Operation
      extended by datapreparation.TextOperation
          extended by datapreparation.stemming.Stemming

public class Stemming
extends TextOperation

Class implementing the stemming operation. Given the language used in the dataset, all terms in the dataset is stemmed.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
Stemming()
           
 
Method Summary
 java.util.ArrayList getProperties()
          Method for getting the properties.
 void performOperation(DataSet dataSet)
          Method for performing the operation.
 void setProperties(java.util.ArrayList properties)
          Method for setting the properties.
 Text stemWordsInText(Text text)
          Method for stemming all terms in a specific text.
 
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

Stemming

public Stemming()
Method Detail

performOperation

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

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

stemWordsInText

public Text stemWordsInText(Text text)
Method for stemming all terms in a specific 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)
Method for setting the properties.

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