gov.llnl.ontology.wordnet.wsd
Interface WordSenseDisambiguation

All Known Implementing Classes:
DegreeCentralityDisambiguation, ExtendedLeskWordSenseDisambiguation, FirstSenseDisambiguation, GraphConnectivityDisambiguation, LeskWordSenseDisambiguation, PageRankCentralityDisambiguation, PersonalizedPageRankWSD, SlidingWindowDisambiguation

public interface WordSenseDisambiguation

An interface for any Word Sense Disambiguation algorithm. Implementations will be given a list of Sentences that need to be disambiguated. Each disambiguated word should have it's Annotation updated with a word sense tag corresponding to some Synset in WordNet.

Author:
Keith Stevens

Method Summary
 Sentence disambiguate(Sentence sentences)
          Returns a new List of s which have word sense labels for each noun found in sentences.
 Sentence disambiguate(Sentence sentence, Set<Integer> targetWords)
          Returns a new List of Sentences which have word sense labels for each annotation index stored in targetWords.
 void setup(OntologyReader reader)
          Initializes the WordSenseDisambiguation algorithm with the given OntologyReader.
 

Method Detail

setup

void setup(OntologyReader reader)
Initializes the WordSenseDisambiguation algorithm with the given OntologyReader. Any other configuration values should be set via the global system properties object.


disambiguate

Sentence disambiguate(Sentence sentences)
Returns a new List of s which have word sense labels for each noun found in sentences.


disambiguate

Sentence disambiguate(Sentence sentence,
                      Set<Integer> targetWords)
Returns a new List of Sentences which have word sense labels for each annotation index stored in targetWords.



Copyright © 2010-2011. All Rights Reserved.