cic.wsd.disambiguation
Class ConceptualDensity
java.lang.Object
cic.wsd.disambiguation.WSDAlgorithm
cic.wsd.disambiguation.ConceptualDensity
public class ConceptualDensity
- extends WSDAlgorithm
Conceptual density algorithm as proposed by Agirre and Rigau in "Word Sense Disambiguation using Conceptual Density".
We also used "Map-based vs. knowledge-based toponym disambiguation" from Buscaldi and Rosso as additional reference.
- Author:
- Francisco Viveros-Jiménez
Method Summary |
Decision |
disambiguate(AmbiguousWord target,
java.util.ArrayList<AmbiguousWord> window)
Disambiguates target using the window. |
private java.util.ArrayList<java.util.ArrayList<java.lang.String>> |
getTree(cic.wordnet.ParsedSynset sense)
Method for extracting the tree neighborhood of a sense. |
java.lang.String |
toString()
Return the name of the algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConceptualDensity
public ConceptualDensity()
disambiguate
public Decision disambiguate(AmbiguousWord target,
java.util.ArrayList<AmbiguousWord> window)
- Description copied from class:
WSDAlgorithm
- Disambiguates target using the window.
- Specified by:
disambiguate
in class WSDAlgorithm
- Parameters:
target
- The AmbiguousWord to be disambiguated.window
- The context window that helps disambiguation process.
- Returns:
- The Decision made by the algorithm.
getTree
private java.util.ArrayList<java.util.ArrayList<java.lang.String>> getTree(cic.wordnet.ParsedSynset sense)
- Method for extracting the tree neighborhood of a sense.
- Parameters:
sense
- The target sense.
- Returns:
- An ArrayList containing ArrayLists with the words of each neighbor synset.
toString
public java.lang.String toString()
- Description copied from class:
WSDAlgorithm
- Return the name of the algorithm.
- Specified by:
toString
in class WSDAlgorithm