Issue #2 resolved

WordNet functions missing

pannous
created an issue
1.9.3p286 :011 > 'opaque'.en.synset.member_holonyms
 => [] 
1.9.3p286 :012 > 'opaque'.en.synset.antonyms
NoMethodError: undefined method `antonyms' for 
#<WordNet::Synset:0x007fde628ee2f0>
    from (irb):12
    from /Users/me/.rvm/rubies/ruby-1.9.3-p286/bin/irb:16:in `<main>'

Comments (3)

  1. Michael Granger repo owner

    This is because the Ruby WordNet library doesn't implement antonyms (yet). The list of relationships it does support are:

    • also_see
    • attributes
    • causes
    • domain_categories
    • domain_member_categories
    • domain_member_regions
    • domain_member_usages
    • domain_regions
    • domain_usages
    • entailments
    • hypernyms
    • hyponyms
    • instance_hypernyms
    • instance_hyponyms
    • member_holonyms
    • member_meronyms
    • part_holonyms
    • part_meronyms
    • similar_words
    • substance_holonyms
    • substance_meronyms
    • verb_groups

    That's an oversight on my part, too, though. I'll open the equivalent ticket for Ruby-WordNet, and once that library supports them, Linguistics will too.

    Thanks for your report!

  2. Log in to comment