Method: WordNet::Synset.postype_table
- Defined in:
- lib/wordnet/synset.rb
.postype_table ⇒ Object
Return the table of part-of-speech types, keyed by letter identifier.
353 354 355 356 357 358 |
# File 'lib/wordnet/synset.rb', line 353 def self::postype_table @postype_table ||= self.db[:postypes].inject({}) do |hash, row| hash[ row[:pos].to_sym ] = row[:posname] hash end end |