class_docstr: Wrapper for the LISP-formatted thesauruses distributed by Dekang Lin.
class_docstr_tok: ["Wrapper","for","the","LISP-formatted","thesauruses","distributed","by","Dekang","Lin","."]
docstr: Determines whether or not the given ngram is in the thesaurus.
  
  :param ngram: ngram to lookup
  :type ngram: C{string}
  :return: whether the given ngram is in the thesaurus.
docstr_tok: ["Determines","whether","or","not","the","given","ngram","is","in","the","thesaurus",".",":","param","ngram",":","ngram","to","lookup",":","type","ngram",":","C","{","string","}",":","return",":","whether","the","given","ngram","is","in","the","thesaurus","."]
code: def __contains__(self, ngram):
      """
      Determines whether or not the given ngram is in the thesaurus.
  
      :param ngram: ngram to lookup
      :type ngram: C{string}
      :return: whether the given ngram is in the thesaurus.
      """
      return reduce(
          lambda accum, fileid: accum
          or (ngram in self._thesaurus[fileid]),
          self._fileids,
          False,
      )
  
file_path: nltk/nltk/corpus/reader/lin.py
imports: import re
  from collections import defaultdict
  from functools import reduce
  from nltk.corpus.reader import CorpusReader
label_desc: Use image node_id 6 for calling the LinThesaurusCorpusReader obj's underlying member method code with example usage: obj.__contains__(ngram) and returns: reduce