title: Fastest way to check if word is in NLTK synsets?
body: <p>I want to check if certain words is present in NLTK's synsets. The following code does that,</p>
  
  <pre><code>from nltk.corpus import wordnet
  if wordnet.synsets(word): 
      ... do something ...
  </code></pre>
  
  <p>but it is rather slow if you have a lot of words to check. Is there a faster way? <strong>I don't need the actual synset object, just a yes/no</strong> if there's anything there. I don't have the list of words ahead of time, so I can't precompute the answers.</p>