WordNet Agent
Download
- Source Code (.pl, 10k)
Note: This is a prolog (.pl) file; the .txt extension is used here to avoid display / download problems with some browsers.
Purpose
Provides an OAA interface to WordNet, a online lexical reference system provided by Princeton University.
The WordNet Prolog Database Package, which is freely downloadable, must
be obtained from the WordNet Web site.
This agent code can be used with either Quintus or Sicstus Prolog
(because those are the Prolog systems supported by the OAA Prolog
library).
Some familiarity with WordNet concepts and terminology is required.
Please refer to the documentation available from the WordNet Web site.
ICL Solvables
The WordNet agent provides two solvables for interacting with WordNet.
- wn_get_word_info(+Wd, ?Type, ?Sense, -Info)
- Looks up a word in word net, returning a list of the args of s/6:
synset_id, w_num, quoted word, ss_type, sense_number,tag_count.
- wn_get_word_definition(+Wd, ?Cat, ?Sense, -Def)
- Returns the "gloss" of the Wd's synsets. If Cat and Sense are not specified, the synset is chosen according to its order in the prolog database.
- wn_get_synonymn(+Wd, ?Cat, ?Sense, -Synonymn)
- Returns a single synonymn of Wd. If Cat and Sense are not specified, the synset is chosen according to its order in the prolog database.
- wn_get_antonymn(+Wd, ?Cat, ?Sense, -Antonymn)
Returns a single antonymn of Wd. If Cat and Sense are not specified, the synset is chosen according to its order in the prolog database.
- wn_get_hypernymn(+Wd, ?Cat, ?Sense, -Hypernymn)
- Returns a single hypernymn of Wd. If Cat and Sense are not specified, the synset is chosen according to its order in the prolog database.
- wn_get_hyponymn(+Wd, ?Cat, ?Sense, -Hyponymn)
- Returns a single hyponymn of Wd. If Cat and Sense are not specified, the synset is chosen according to its order in the prolog database.
- wn_get_meronymn(+Wd, ?Sense, ?Type, -Meronymn)
- Returns a single meronymn of Wd (i.e Wd is part/member/substance of Meronymn).
If Cat and Sense are not specified, the synset is chosen
according to its order in the prolog database. Type is the type of meronymn: part-of (mp), member-of(mm),
substance-of(ms). If it is not specified, any meronymn is
returned.
- wn_get_holonymn(+Wd, ?Sense, ?Type, -Holonymn)
Returns a single holonymn of Wd (the inverse of meronymn,
q.v.).
- wn_verify_participial_adj(?Adjective, ?Verb)
Verifies that an adjective is a participal of the verb
- wn_get_verb_frame(+Verb, ?Sense, ?FrameNumber,-Frame)
Returns a single frame for the verb (a frame encodes
subcategorization and selectional restrictions. If a sense is not specified, then a general frame for the verb's synset is returned, if there is one.
More Information
Author: Chris Culy (Culy@ai.sri.com)
Implementation Language: PROLOG
Date last modified : Feb 10, 2003
Individual
Agents Documentation
Page