public class DictionaryToMap
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private DictionaryCatalogSet |
_destFiles |
| Constructor and Description |
|---|
DictionaryToMap(java.lang.String destDirectory,
java.lang.String propFile)
Initalize with the given map destination directory, using the properties file(usually file_properties.xml)
|
| Modifier and Type | Method and Description |
|---|---|
void |
convert()
Converts the current Dictionary to a MapBackedDictionary.
|
private java.util.Iterator |
getIterator(POS pos,
DictionaryFileType fileType) |
static void |
main(java.lang.String[] args) |
private void |
serialize(POS pos,
DictionaryFileType fileType) |
private DictionaryCatalogSet _destFiles
public DictionaryToMap(java.lang.String destDirectory,
java.lang.String propFile)
throws JWNLException,
java.io.IOException
destDirectory - - destination directory for in-memory map filespropFile - - properties file of file-based WordNetJWNLExceptionjava.io.IOExceptionpublic void convert()
throws JWNLException,
java.io.IOException
JWNLExceptionjava.io.IOExceptionprivate java.util.Iterator getIterator(POS pos, DictionaryFileType fileType) throws JWNLException
JWNLExceptionprivate void serialize(POS pos, DictionaryFileType fileType) throws JWNLException, java.io.IOException
JWNLExceptionjava.io.IOExceptionpublic static void main(java.lang.String[] args)