gr.demokritos.iit.conceptualIndex
Class LocalWordNetMeaningExtractor

java.lang.Object
  extended by gr.demokritos.iit.conceptualIndex.LocalWordNetMeaningExtractor
All Implemented Interfaces:
IMeaningExtractor

public class LocalWordNetMeaningExtractor
extends java.lang.Object
implements IMeaningExtractor

This class uses locally installed WordNet to extract word definitions.


Constructor Summary
LocalWordNetMeaningExtractor()
          Creates a new instance of LocalWordNetMeaningExtractor, checking there is a reachable WordNet instance installed.
 
Method Summary
 WordDefinition getMeaning(java.lang.String sString)
          Looks up a word using a locally installed WordNet instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalWordNetMeaningExtractor

public LocalWordNetMeaningExtractor()
                             throws java.io.IOException
Creates a new instance of LocalWordNetMeaningExtractor, checking there is a reachable WordNet instance installed.

Throws:
java.io.IOException - If WordNet is not found an appropriate IOException is thrown.
See Also:
IOException
Method Detail

getMeaning

public WordDefinition getMeaning(java.lang.String sString)
Looks up a word using a locally installed WordNet instance.

Specified by:
getMeaning in interface IMeaningExtractor
Parameters:
sString - The string to lookup.
Returns:
The definition of the word being looked up.
See Also:
WordDefinition