Class: WordNet::Morph
- Inherits:
-
Object
- Object
- WordNet::Morph
- Includes:
- Constants
- Defined in:
- lib/wordnet/morph.rb
Overview
WordNet morph 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
-
#to_s ⇒ Object
Return the stringified word; alias for #lemma.
-
#words ⇒ Object
The WordNet::Word entries associated with this Morph.
Instance Method Details
#to_s ⇒ Object
Return the stringified word; alias for #lemma.
56 57 58 |
# File 'lib/wordnet/morph.rb', line 56 def to_s return "%s (%s)" % [ self.morph, self.pos ] end |
#words ⇒ Object
The WordNet::Word entries associated with this Morph
49 50 51 52 |
# File 'lib/wordnet/morph.rb', line 49 many_to_many :words, join_table: :morphmaps, right_key: :wordid, left_key: :morphid |