Class: WordNet::LexicalLink
- Inherits:
-
Object
- Object
- WordNet::LexicalLink
- Includes:
- Constants
- Defined in:
- lib/wordnet/lexicallink.rb
Overview
WordNet lexical link (pointer) model class
Constant Summary
Constants included from Constants
Constants::DEFAULT_DB_OPTIONS, Constants::DELIM, Constants::DELIM_RE, Constants::DOMAIN_TYPES, Constants::DomainSymbols, Constants::HOLONYM_SYMBOLS, Constants::HOLONYM_TYPES, Constants::HYPERNYM_SYMBOLS, Constants::HYPERNYM_TYPES, Constants::HYPONYM_SYMBOLS, Constants::HYPONYM_TYPES, Constants::LEXFILES, Constants::MEMBER_SYMBOLS, Constants::MEMBER_TYPES, Constants::MERONYM_SYMBOLS, Constants::MERONYM_TYPES, Constants::POINTER_SUBTYPES, Constants::POINTER_SYMBOLS, Constants::POINTER_TYPES, Constants::SUB_DELIM, Constants::SUB_DELIM_RE, Constants::SYNTACTIC_CATEGORIES, Constants::SYNTACTIC_SYMBOLS, Constants::VERB_SENTS
Instance Method Summary collapse
-
#origin ⇒ Object
The WordNet::Sense the link is pointing from.
-
#target ⇒ Object
The WordNet::Synset the link is pointing to.
-
#type ⇒ Object
Return the type of link this is as a Symbol.
Instance Method Details
#origin ⇒ Object
The WordNet::Sense the link is pointing from.
15 16 17 18 |
# File 'lib/wordnet/lexicallink.rb', line 15 many_to_one :origin, :class => :"WordNet::Sense", :key => :synset1id, :primary_key => :synsetid |
#target ⇒ Object
The WordNet::Synset the link is pointing to.
22 23 24 25 |
# File 'lib/wordnet/lexicallink.rb', line 22 one_to_many :target, :class => :"WordNet::Synset", :key => :synsetid, :primary_key => :synset2id |
#type ⇒ Object
Return the type of link this is as a Symbol.
33 34 35 |
# File 'lib/wordnet/lexicallink.rb', line 33 def type return WordNet::Synset.linktype_table[ self.linkid ][ :type ] end |