Java API for WordNet Searching (JAWS) |
||||||||||||
| As its name implies, the Java API for WordNet Searching (JAWS) is an API that provides Java applications with the ability to retrieve data from the WordNet database. It is a simple and fast API that is compatible with both the 2.1 and 3.0 versions of the WordNet database files and can be used with Java 1.4 and later. JAWS was created by Brett Spell as a project for Dr. Margaret Dunham's class on Information Retrieval at Southern Methodist University. | ||||||||||||
Using JAWS With Your ApplicationTo use JAWS in your application you must do the following:
| ||||||||||||
For example, let's assume the following:
MyApp that contains a main() method:
java -classpath .;C:/mywork/code/jaws.jar -Dwordnet.database.dir=C:/WordNet-3.0/dict MyApp | ||||||||||||
Getting Started With the APIFrom within the application you started you can use JAWS by first obtaining an instance of WordNetDatabase with code like the following, which assumes that you've performed animport of the classes in the edu.smu.tspell.wordnet
package:
Once you've done so, you can begin to retrieve synsets from the
database as shown in the example below:
| ||||||||||||
| For more information on how to use JAWS you can browse the API documentation, although in most cases your application should only need to refer to the types defined in edu.smu.tspell.wordnet. | ||||||||||||
Changes
| ||||||||||||
Downloads | ||||||||||||
| The following files are available for download:
A small sample program is also available here that demonstrates how to use the API. It is run from the command line and displays some of the attributes of the synset(s), if any, that contain the word form you specified. | ||||||||||||
|
|