|
WordNet synonym-set object class
ss = lexicon.lookupSynset( "word", WordNet::Noun, 1 ) puts "Definition: %s" % ss.gloss coords = ss.coordinates
Instances of this class encapsulate the data for a synonym set (‘synset’) in a Wordnet lexical database. A synonym set is a set of words that are interchangeable in some context.
Michael Granger <ged@FaerieMUD.org>
Copyright © 2002, 2003 The FaerieMUD Consortium. All rights reserved.
This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)
Much of this code was inspired by/ported from the Lingua::Wordnet Perl module by Dan Brian.
$Id: synset.rb,v 1.5 2003/09/03 07:47:29 deveiant Exp $
Required files |
Classes and Modules |