Method: Words::TokyoWordnetConnection#synset
- Defined in:
- lib/wordnet_connectors/tokyo_wordnet_connection.rb
#synset(synset_id) ⇒ Object
Locates from a synset_id a specific synset and constructs a synset hash.
101 102 103 104 105 106 |
# File 'lib/wordnet_connectors/tokyo_wordnet_connection.rb', line 101 def synset(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? @connection[synset_id] end |