datapreparation.noun
Class Noun

java.lang.Object
  extended by control.Operation
      extended by datapreparation.TextOperation
          extended by datapreparation.noun.Noun

public class Noun
extends TextOperation

Class implementing an operation to extrac nouns from the texts in the dataset. A noun is here given by a word where the first letter is upper case. The operations also deals with all words independently. That is, no Noun groups are formed. If this is needed, code for this is exist but is commented away.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
Noun()
          Constructor for the noun operation.
 
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.
 
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

Noun

public Noun()
Constructor for the noun operation. Initializes a vector of characters that divide the text into sentences or part of sentences. For example, , ) ( and so on.

Method Detail

performOperation

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

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

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