Update wordnet_based_similarity.rb

wordnet_based_similarity.rb refactored