You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# these work fineWordNet::Lemma.find('turtle',:noun)WordNet::Lemma.find('turtle','noun')WordNet::Lemma.find('turtle',:n)# this does notWordNet::Lemma.find('turtle','n')# => Errno::ENOENT: No such file or directory @ rb_sysopen - .../gems/rwordnet-2.0.0/WordNet-3.0/dict/index.n
# this works fineWordNet::Synset.find('turtle','noun')# these do not (NoMethodError: undefined method `has_key?' for nil:NilClass)WordNet::Synset.find('turtle',:noun)WordNet::Synset.find('turtle',:n)WordNet::Synset.find('turtle','n')
I suggest having centralized logic to perform this normalization, so both Lemma and Synset can take advantage of it.
The text was updated successfully, but these errors were encountered:
Examples:
I suggest having centralized logic to perform this normalization, so both
Lemma
andSynset
can take advantage of it.The text was updated successfully, but these errors were encountered: