Method: Words::PureWordnetConnection#evocations
- Defined in:
- lib/wordnet_connectors/pure_wordnet_connection.rb
#evocations(synset_id) ⇒ Object
Locates from a synset id any relevent evocations and constructs an evocations hash.
142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/wordnet_connectors/pure_wordnet_connection.rb', line 142 def evocations(synset_id) raise NoWordnetConnection, "There is presently no connection to wordnet. To attempt to reistablish a connection you should use the 'open!' command on the Wordnet object." unless connected? if defined? @evocations raw_evocations = @evocations[synset_id + "s"] { 'relations' => raw_evocations[0], 'means' => raw_evocations[1], 'medians' => raw_evocations[2]} unless raw_evocations.nil? else nil end end |