gov.llnl.ontology.wordnet.wsd
Class DegreeCentralityDisambiguation
java.lang.Object
gov.llnl.ontology.wordnet.wsd.GraphConnectivityDisambiguation
gov.llnl.ontology.wordnet.wsd.DegreeCentralityDisambiguation
- All Implemented Interfaces:
- WordSenseDisambiguation
public class DegreeCentralityDisambiguation
- extends GraphConnectivityDisambiguation
An implementation of the Degree Centrality based Word Sense Disambiguation
algorithm as described in the following paper:
- Navigli, R.; Lapata, M.; ,
"An Experimental Study of Graph Connectivity for Unsupervised Word Sense
Disambiguation," Pattern Analysis and Machine Intelligence, IEEE
Transactions on , vol.32, no.4, pp.678-692, April 2010. Available
here
This algorithm uses a the small connected graph created by GraphConnectivityDisambiguation
and selects the possible word sense that has
the highest degree in the extracted subgraph.
This class is thread safe.
- Author:
- Keith Stevens
- See Also:
GraphConnectivityDisambiguation
DegreeCentralityDisambiguation
public DegreeCentralityDisambiguation()
processSentenceGraph
protected void processSentenceGraph(List<GraphConnectivityDisambiguation.AnnotationSynset> targetWords,
Set<Synset> synsets,
edu.ucla.sspace.basis.StringBasisMapping synsetBasis,
edu.ucla.sspace.matrix.Matrix adjacencyMatrix)
- Disambiguates the
Annotations
in targetWords
by using
the Set
GraphConnectivityDisambiguation.AnnotationSynset
s carved out of the ontology for a given
setnence.
- Specified by:
processSentenceGraph
in class GraphConnectivityDisambiguation
- Parameters:
targetWords
- A list of Annotation
s and their possible
senses that need to be disambiguated. The Annotation
in each GraphConnectivityDisambiguation.AnnotationSynset
should be updated
with the selected word sense.synsets
- The set of GraphConnectivityDisambiguation.AnnotationSynset
s to consider for any graph
traversal.synsetBasis
- A mapping from GraphConnectivityDisambiguation.AnnotationSynset
names to indices in a
graph.adjacencyMatrix
- An adjaceny matrix detailing how GraphConnectivityDisambiguation.AnnotationSynset
s
in synsets
are connected.
toString
public String toString()
- Returns "dcd", the acronyms for this
WordSenseDisambiguation
algorithm.
- Overrides:
toString
in class Object
Copyright © 2010-2011. All Rights Reserved.