clj-wordnet icon indicating copy to clipboard operation
clj-wordnet copied to clipboard

Missing paren in :synset demo query

Open ProbonoBonobo opened this issue 9 years ago • 1 comments

From readme.md:

(map :lemma (words (:synset dog))
=> ("dog" "domestic_dog", "Canis_familiaris")

Is it missing just a paren, or something more? I tried closing the s-expr, but Clojure's having trouble resolving "words" in this context. The other examples from the docs work great.

ProbonoBonobo avatar Jan 25 '16 06:01 ProbonoBonobo

Hi, seems like the docs are out-of-date - you are right: there is a missing ), but words should work.

However I think the underlying problem is that there is no longer a :synset attribute on dog:

(println dog)
=> {:id WID-02086723-N-01-dog, :pos :noun, :lemma dog}   

(:synset dog)
=> nil

Likewise :gloss.

I no longer have commit access, and am unsure whether it is actively maintained any more - sorry.

rm-hull avatar Jan 26 '16 21:01 rm-hull