net.sf.extjwnl.utilities
Class DictionaryToMap

java.lang.Object
  extended by net.sf.extjwnl.utilities.DictionaryToMap

public class DictionaryToMap
extends Object

DictionaryToMap allows you to populate and create an in-memory map of the WordNet library. The goal of this utility is to provide a performance boost to applications using a high quantity of API calls to the extJWNL library (such as word sense disambiguation algorithms or dictionary services).

Author:
Brett Walenz , Aliaksandr Autayeu

Constructor Summary
DictionaryToMap(String propFile, String destinationDirectory)
          Initialize with the given map destination directory, using the properties file(usually file_properties.xml)
 
Method Summary
 void convert()
          Converts the current Dictionary to a MapBackedDictionary.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryToMap

public DictionaryToMap(String propFile,
                       String destinationDirectory)
                throws JWNLException,
                       IOException
Initialize with the given map destination directory, using the properties file(usually file_properties.xml)

Parameters:
propFile - properties file
destinationDirectory - destination directory for in-memory map files
Throws:
JWNLException - JWNLException
IOException - IOException
Method Detail

convert

public void convert()
             throws JWNLException,
                    IOException
Converts the current Dictionary to a MapBackedDictionary.

Throws:
JWNLException - JWNLException
IOException - IOException

main

public static void main(String[] args)


Copyright © 2011. All Rights Reserved.