class_docstr: Tokenize or lemmatize a list of documents. Default spacy model is **en_core_web_sm**.
  Return a list of tokens or lemmas for a whole document.
  If is called onto ``List[str]``, performs detokenizing procedure.
  
  Args:
      disable: spacy pipeline elements to disable, serves a purpose of performing; if nothing
      filter_stopwords: whether to ignore stopwords during tokenizing/lemmatizing and ngrams creation
      batch_size: a batch size for spaCy buffering
      ngram_range: size of ngrams to create; only unigrams are returned by default
      lemmas: whether to perform lemmatizing or not
      lowercase: whether to perform lowercasing or not; is performed by default by :meth:`_tokenize`
       and :meth:`_lemmatize` methods
      alphas_only: whether to filter out non-alpha tokens; is performed by default by
       :meth:`_filter` method
      spacy_model: a string name of spacy model to use; DeepPavlov searches for this name in
       downloaded spacy models; default model is **en_core_web_sm**, it downloads automatically
       during DeepPavlov installation
  
  
  Attributes:
      stopwords: a list of stopwords that should be ignored during tokenizing/lemmatizing
       and ngrams creation
      model: a loaded spacy model
      batch_size: a batch size for spaCy buffering
      ngram_range: size of ngrams to create; only unigrams are returned by default
      lemmas: whether to perform lemmatizing or not
      lowercase: whether to perform lowercasing or not; is performed by default by :meth:`_tokenize`
       and :meth:`_lemmatize` methods
      alphas_only: whether to filter out non-alpha tokens; is performed by default by :meth:`_filter`
       method
docstr: Redefine a list of stopwords.
  
  Args:
      stopwords: a list of stopwords
  
  Returns:
      None
docstr_tok: ["Redefine","a","list","of","stopwords",".","Args",":","stopwords",":","a","list","of","stopwords","Returns",":","None"]
code: def set_stopwords(self, stopwords: List[str]) -> None:
      """Redefine a list of stopwords.
  
      Args:
          stopwords: a list of stopwords
  
      Returns:
          None
  
      """
      self.stopwords = stopwords
  
file_path: DeepPavlov/deeppavlov/models/tokenizers/spacy_tokenizer.py
imports: from logging import getLogger
  from typing import List, Generator, Any, Optional, Union, Tuple, Iterable
  import spacy
  import spacy.language
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
  from deeppavlov.models.tokenizers.utils import detokenize, ngramize
label_desc: Use image node_id 6 for calling the StreamSpacyTokenizer obj's underlying member method code with example usage: obj.set_stopwords(stopwords) without return types