| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.util.proc.TextDataProcessor
emolib.wsd.WordSenseDisambiguator
emolib.wsd.simlib.SimLibWSD
public class SimLibWSD
The SimLibWSD class performs the Word Sense Disambiguation (WSD) process using the WordNet Similarity library.
In order to perform this process, the word-sense disambiguator is based on the system proposed by (Seco et al., 2004).
The SimLibWSD class requires a configuration parameter that indicates the location of the necessary files that represent the indexed WordNet structure. SimLibWSD depends on the (adapted) code developed by Nuno Seco for the WordNet Similarity library.
 --
 (Seco et al., 2004) Seco, N., Veale, T., Hayes, J. (2004) "An Intrinsic Information
 Content Metric for Semantic Similarity in WordNet". In Proceedings of the
 European Conference of Artificial Intelligence.
 
| Field Summary | |
|---|---|
| static java.lang.String | PROP_USE_ADJECTIVES | 
| static java.lang.String | PROP_USE_NOUNS | 
| static java.lang.String | PROP_USE_VERBS | 
| static java.lang.String | PROP_WNINDEX_PATHThe name of the property indicating the path of the WordNet index files needed by the WordNet Similarity library. | 
| Constructor Summary | |
|---|---|
| SimLibWSD()Main constructor of the SimLibWSD. | |
| Method Summary | |
|---|---|
|  void | applyWSD(TextData inputTextDataObject)Method to perform the word-sense disambiguation process. | 
|  void | initialize()Method to initialize the SimLibWSD. | 
|  void | newProperties(PropertySheet ps)This method is called when this configurable component has new data. | 
|  void | register(java.lang.String name,
         Registry registry)Register my properties. | 
| Methods inherited from class emolib.wsd.WordSenseDisambiguator | 
|---|
| getData | 
| Methods inherited from class emolib.util.proc.TextDataProcessor | 
|---|
| flush, getName, getPredecessor, setPredecessor, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String PROP_WNINDEX_PATH
public static final java.lang.String PROP_USE_NOUNS
public static final java.lang.String PROP_USE_VERBS
public static final java.lang.String PROP_USE_ADJECTIVES
| Constructor Detail | 
|---|
public SimLibWSD()
| Method Detail | 
|---|
public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Configurable
register in interface Configurableregister in class WordSenseDisambiguatorname - the name of the componentregistry - the registry for this component
PropertyException
public void newProperties(PropertySheet ps)
                   throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class WordSenseDisambiguatorps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void initialize()
initialize in interface DataProcessorinitialize in class WordSenseDisambiguatorpublic void applyWSD(TextData inputTextDataObject)
applyWSD in class WordSenseDisambiguatorinputTextDataObject - The TextData object to process.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||