wordPower
Class WordPower

java.lang.Object
  extended by wordPower.WordPower

public class WordPower
extends java.lang.Object

Author: Tad Stach (1587688) Date: Saturday, March 2, 2002 Program Title: WordPower Program Description: The WordPower program uses the Roget's Electronic Thesaurus to calculate the results of Reader's Digest Word Power game questions. The Electronic Thesaurus has been designed and implemented by Mario Jarmasz. Also note that this program is based highly on Mario Jarmasz's Semantic Distance program. Modified: Oct. 29, 2002 - Mario Jarmasz Nov. 7, 2003 - Mario Jarmasz Usage : java WordPower Format of input file: | | | | A line beginning with a # is considered a comment

Version:
1.2 Nov 2008
Author:
Mario Jarmasz and Alistsair Kennedy

Field Summary
 RogetELKB elkb
           
 
Constructor Summary
WordPower()
          Constructor is passed the year of the version of the thesaurus to be used.
WordPower(java.lang.String year)
          Constructor is passed the year of the version of the thesaurus to be used.
 
Method Summary
static void main(java.lang.String[] args)
          main method loads the ELKB and then calculates best synonym for the input file.
 java.lang.String[] pickSynonym(java.lang.String word, java.lang.String[] candidates)
          Takes a target word and a set of candidates for synonymy and returns 1 or more candidates words that are determined to be most likely to be synonyms.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elkb

public RogetELKB elkb
Constructor Detail

WordPower

public WordPower(java.lang.String year)
Constructor is passed the year of the version of the thesaurus to be used.

Parameters:
year -

WordPower

public WordPower()
Constructor is passed the year of the version of the thesaurus to be used.

Method Detail

main

public static void main(java.lang.String[] args)
main method loads the ELKB and then calculates best synonym for the input file.

Parameters:
args -

pickSynonym

public java.lang.String[] pickSynonym(java.lang.String word,
                                      java.lang.String[] candidates)
Takes a target word and a set of candidates for synonymy and returns 1 or more candidates words that are determined to be most likely to be synonyms. If no candidates are passed then the method returns null.

Parameters:
word -
candidates -
Returns:
array of best Synonyms