class_docstr: This is a simple subclass of StemFilter that works with the py-stemmer
  third-party library. You must have the py-stemmer library installed to use
  this filter.
  
  >>> PyStemmerFilter("spanish")
class_docstr_tok: ["This","is","a","simple","subclass","of","StemFilter","that","works","with","the","py-stemmer","third-party","library",".","You","must","have","the","py-stemmer","library","installed","to","use","this","filter",".",">",">",">","PyStemmerFilter","(","``","spanish","''",")"]
code: def __setstate__(self, state):
      # Check for old instances of StemFilter class, which didn't have a
      # cachesize attribute and pickled the cache attribute
      if "cachesize" not in state:
          self.cachesize = 10000
      if "ignores" in state:
          self.ignore = state["ignores"]
      elif "ignore" not in state:
          self.ignore = frozenset()
      if "cache" in state:
          del state["cache"]
  
      self.__dict__.update(state)
      # Set the _stem attribute
      self._stem = self._get_stemmer_fn()
  
imports: from whoosh.analysis.filters import Filter
  from whoosh.compat import integer_types
  from whoosh.lang.dmetaphone import double_metaphone
  from whoosh.lang.porter import stem
  from whoosh.util.cache import lfu_cache, unbound_cache
label_desc: Use image node_id 6 for calling the PyStemmerFilter obj's underlying member method code with example usage: obj.__setstate__(state) without return types