(self, stemfn=stem, lang=None, ignore=None, cachesize=50000)
:param stemfn: the function to use for stemming.
        :param lang: if not None, overrides the stemfn with a language stemmer
            from the ``whoosh.lang.snowball`` package.
        :param ignore: a set/list of words that should not be stemmed. This is
            converted into a frozenset. If you omit this argument, all tokens
            are stemmed.
        :param cachesize: the maximum number of words to cache. Use ``-1`` for
            an unbounded cache, or ``None`` for no caching.
:param stemfn: the function to use for stemming.
        :param lang: if not None, overrides the stemfn with a language stemmer
            from the ``whoosh.lang.snowball`` package.
        :param ignore: a set/list of words that should not be stemmed. This is
            converted into a frozenset. If you omit this argument, all tokens
            are stemmed.
        :param cachesize: the maximum number of words to cache. Use ``-1`` for
            an unbounded cache, or ``None`` for no caching.
: param stemfn : the function to use for stemming . : param lang : if not None overrides the stemfn with a language stemmer from the whoosh . lang . snowball package . : param ignore : a set / list of words that should not be stemmed . This is converted into a frozenset . If you omit this argument all tokens are stemmed . : param cachesize : the maximum number of words to cache . Use - 1 for an unbounded cache or None for no caching .
def __init__(self, stemfn=stem, lang=None, ignore=None, cachesize=50000):
        """
        :param stemfn: the function to use for stemming.
        :param lang: if not None, overrides the stemfn with a language stemmer
            from the ``whoosh.lang.snowball`` package.
        :param ignore: a set/list of words that should not be stemmed. This is
            converted into a frozenset. If you omit this argument, all tokens
            are stemmed.
        :param cachesize: the maximum number of words to cache. Use ``-1`` for
            an unbounded cache, or ``None`` for no caching.
        """

        self.stemfn = stemfn
        self.lang = lang
        self.ignore = frozenset() if ignore is None else frozenset(ignore)
        self.cachesize = cachesize
        # clear() sets the _stem attr to a cached wrapper around self.stemfn
        self.clear()
def __init__ ( self , stemfn = stem , lang = None , ignore = None , cachesize = 50000 ) : self . stemfn = stemfn self . lang = lang self . ignore = frozenset ( ) if ignore is None else frozenset ( ignore ) self . cachesize = cachesize # clear() sets the _stem attr to a cached wrapper around self.stemfn self . clear ( )