WordnetInterface Installation Instructions
For WordnetInterface 2.0.1 (Linguistic Watermark 2.0)
Installation:
- If you have not yet done so, download and install WordNet.
- Download the
LinguisticWatermark package and the Wordnet Interface
- Copy all the content of this zip file, which are:
- commons-logging.jar
- jwnl.jar
- WordnetInterface.jar
inside your working directory
- In the WordnetInterface folder, you will find file_properties.xml; you must modify this file to:
- specify the path to the "dict" directory of your Wordnet installation (e.g. d:\Linguistic_Resources\WordNet\2.0\dict),
this can be done by editing the value attribute of the xml tag, as in the following example:
<param
name="dictionary_path"
value="D:\Linguistic_Resources\WordNet\2.0\dict" />
- specify the version of wordnet you are using (1.6, 1.7.X, 2.0 only. 2.1 not supported yet, sorry :-) ).
- the dictionary reader; under the property dictionary_element_factory, select:
- net.didion.jwnl.princeton.data.PrincetonWN17FileDictionaryElementFactory if working with wordnet 2.0 or 1.7
- net.didion.jwnl.princeton.data.PrincetonWN16FileDictionaryElementFactory if working with wordnet 1.6
- In file_properties.xml you must specify the path to the "dict" directory of your Wordnet installation (e.g. d:\Linguistic_Resources\WordNet\2.0\dict);
this can be done by editing the value attribute of the xml tag:
- Set the LinguisticInterfaceJar property of Ontoling plugin.properties file to:
LinguisticInterfaceJar=plugins/it.uniroma2.info.ai-nlp.ontoling/WordnetInterface.jar
(you can find a precompiled copy of this file in the WordnetInterface folder, so you just need to move it to Ontoling root directory: it.uniroma2.info.ai-nlp.ontoling )
The Linguistic Watermark graphic configuration utility can be used for
properly setting the WordNet Interface according to the version of WordNet available in
your computer and on its position in your hard drive. Anyway, the instructions
below refer to the xml Linguistic Watermark configuration file.
Below are represented the interface and a instances sections of the
Linguistic Watermark configuration file (see Linguistic Watermark
User Manual for details):
<interface id="WORDNET"
path="plugins/it.uniroma2.info.ai-nlp.ontoling/WordnetInterface.jar"
/>
the interface section for WordNet needs no particular configuration (there is
no property associated to the declaration of the WordNet Interface), while, in
the instances sections
<instance id="WordNet_2.0"
interface="WORDNET">
<property
description="path
where is file_properties.xml"
id="jwnl_properties"
value="plugins/it.uniroma2.info.ai-nlp.ontoling/WordnetInterface/file_properties.xml"
/>
</instance>
a single property (jwnl_properties) is necessary, pointing to the property
file which is used by the JWNL to access a specific WordNet vocabulary.
This way, it is possible to prepare different properties files and access the
proper one depending on the version of WordNet which is needed at the time.
THIRD PARTY LIBRARIES INCLUDED IN THE WORDNET-INTERFACE RELEASE:
the WordnetInterface release includes the following third party libraries:
commons-logging.jar which
has been developed by the Apache Software Foundation (http://www.apache.org/)
jwnl.jar
JWNL (Java Wordnet Library) which was architected by John Didion,
and the majority of the code written by him.
He can be contacted at jdidion@didion.net.