class WordNet::LexicalLink
WordNet
lexical link (pointer) model class
Public Instance Methods
origin()
click to toggle source
The WordNet::Sense
the link is pointing from.
# File lib/wordnet/lexicallink.rb, line 15 many_to_one :origin, class: 'WordNet::Sense', key: :synset1id, primary_key: :synsetid
target()
click to toggle source
The WordNet::Synset
the link is pointing to.
# File lib/wordnet/lexicallink.rb, line 22 one_to_many :target, class: 'WordNet::Synset', key: :synsetid, primary_key: :synset2id
type()
click to toggle source
Return the type of link this is as a Symbol.
# File lib/wordnet/lexicallink.rb, line 33 def type return WordNet::Synset.linktype_table[ self.linkid ][ :type ] end