datapreparation.wordsensedisambiguation
Class WordSenseDisambiguation

java.lang.Object
  extended by control.Operation
      extended by datapreparation.TextOperation
          extended by datapreparation.wordsensedisambiguation.WordSenseDisambiguation

public class WordSenseDisambiguation
extends TextOperation

Class implementing Word Sense Disambiguation using the Lesk and adapted Lesk algorithms. The operation takes as input a tagged text, and a list of terms. The operation then tries to disambiguate the terms tagged as nouns using the their context in the text.

Author:
Ole Kristian Fivelstad

Constructor Summary
WordSenseDisambiguation()
           
 
Method Summary
 Text disambiguateTermsInText(Text text)
          Method for performing the disambiguation of the terms in a text.
 java.util.ArrayList getProperties()
          Method for getting the properties
 void performOperation(DataSet dataSet)
          Method for performing the operation.
 java.lang.String removeChars(java.lang.String word)
          Method for removing a set of characters from a word.
 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

WordSenseDisambiguation

public WordSenseDisambiguation()
Method Detail

performOperation

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

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

disambiguateTermsInText

public Text disambiguateTermsInText(Text text)
Method for performing the disambiguation of the terms in a text.

Parameters:
text - The text
Returns:
The new text

removeChars

public java.lang.String removeChars(java.lang.String word)
Method for removing a set of characters from a word.

Parameters:
word - The word
Returns:
The new word

getProperties

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

Specified by:
getProperties in class Operation
Returns:
properties

setProperties

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

Specified by:
setProperties in class Operation
Parameters:
properties -