|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcontrol.Operation
datapreparation.TextOperation
datapreparation.wordsensedisambiguation.WordSenseDisambiguation
public class WordSenseDisambiguation
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.
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 |
---|
public WordSenseDisambiguation()
Method Detail |
---|
public void performOperation(DataSet dataSet)
performOperation
in class Operation
dataSet
- The dataset being used.public Text disambiguateTermsInText(Text text)
text
- The text
public java.lang.String removeChars(java.lang.String word)
word
- The word
public java.util.ArrayList getProperties()
getProperties
in class Operation
public void setProperties(java.util.ArrayList properties)
setProperties
in class Operation
properties
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |