(self, lang="english", ignore=None, cachesize=10000)
:param lang: a string identifying the stemming algorithm to use. You
            can get a list of available algorithms by with the
            :meth:`PyStemmerFilter.algorithms` method. The identification
            strings are directly from the py-stemmer library.
        :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.
:param lang: a string identifying the stemming algorithm to use. You
            can get a list of available algorithms by with the
            :meth:`PyStemmerFilter.algorithms` method. The identification
            strings are directly from the py-stemmer library.
        :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.
: param lang : a string identifying the stemming algorithm to use . You can get a list of available algorithms by with the : meth : PyStemmerFilter . algorithms method . The identification strings are directly from the py - stemmer library . : 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 .
def __init__(self, lang="english", ignore=None, cachesize=10000):
        """
        :param lang: a string identifying the stemming algorithm to use. You
            can get a list of available algorithms by with the
            :meth:`PyStemmerFilter.algorithms` method. The identification
            strings are directly from the py-stemmer library.
        :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.
        """

        self.lang = lang
        self.ignore = frozenset() if ignore is None else frozenset(ignore)
        self.cachesize = cachesize
        self._stem = self._get_stemmer_fn()
def __init__ ( self , lang = "english" , ignore = None , cachesize = 10000 ) : self . lang = lang self . ignore = frozenset ( ) if ignore is None else frozenset ( ignore ) self . cachesize = cachesize self . _stem = self . _get_stemmer_fn ( )