WordNet::

LexicalLink class

WordNet lexical link (pointer) model class

Public Instance Methods

origin()

The WordNet::Sense the link is pointing from.

# File lib/wordnet/lexicallink.rb, line 14
many_to_one :origin,
        class: 'WordNet::Sense',
        key: :synset1id,
        primary_key: :synsetid
target()

The WordNet::Synset the link is pointing to.

# File lib/wordnet/lexicallink.rb, line 21
one_to_many :target,
        class: 'WordNet::Synset',
        key: :synsetid,
        primary_key: :synset2id
type()

Return the type of link this is as a Symbol.

# File lib/wordnet/lexicallink.rb, line 32
def type
        return WordNet::Synset.linktype_table[ self.linkid ][ :type ]
end