net.didion.jwnl.utilities
Class DictionaryToMap
java.lang.Object
net.didion.jwnl.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 JWNL library
(such as word sense disambiguation algorithms, or dictionary services).
- Author:
- brett
|
Constructor Summary |
DictionaryToMap(String destDirectory,
String propFile)
Initalize 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 |
DictionaryToMap
public DictionaryToMap(String destDirectory,
String propFile)
throws JWNLException,
IOException
- Initalize with the given map destination directory, using the properties file(usually file_properties.xml)
- Parameters:
destDirectory - - destination directory for in-memory map filespropFile - - properties file of file-based WordNet
- Throws:
JWNLException
IOException
convert
public void convert()
throws JWNLException,
IOException
- Converts the current Dictionary to a MapBackedDictionary.
- Throws:
JWNLException
IOException
main
public static void main(String[] args)
Copyright © 2011. All Rights Reserved.