gov.llnl.ontology.wordnet.wsd
Class DegreeCentralityDisambiguation
java.lang.Object
   gov.llnl.ontology.wordnet.wsd.GraphConnectivityDisambiguation
gov.llnl.ontology.wordnet.wsd.GraphConnectivityDisambiguation
       gov.llnl.ontology.wordnet.wsd.DegreeCentralityDisambiguation
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 byGraphConnectivityDisambiguation 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 AnnotationsintargetWordsby  using
 theSetGraphConnectivityDisambiguation.AnnotationSynsets carved out of the ontology for a given
 setnence.
 
- 
- Specified by:
- processSentenceGraphin class- GraphConnectivityDisambiguation
 
- 
- Parameters:
- targetWords- A list of- Annotations and their possible
        senses that need to be disambiguated.  The- Annotationin each- GraphConnectivityDisambiguation.AnnotationSynsetshould be updated
        with the selected word sense.
- synsets- The set of- GraphConnectivityDisambiguation.AnnotationSynsets to consider for any graph
        traversal.
- synsetBasis- A mapping from- GraphConnectivityDisambiguation.AnnotationSynsetnames to indices in a
        graph.
- adjacencyMatrix- An adjaceny matrix detailing how- GraphConnectivityDisambiguation.AnnotationSynsets
        in- synsetsare connected.
 
toString
public String toString()
- Returns "dcd", the acronyms for this WordSenseDisambiguationalgorithm.
 
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2010-2011. All Rights Reserved.