docstr: Sets the text to be processed
  
  Parameters
  ----------
  text
      Text to be processed.
docstr_tok: ["Sets","the","text","to","be","processed","Parameters","--","--","--","--","--","text","Text","to","be","processed","."]
code: def set_text(self, text: str) -> None:
      """
      Sets the text to be processed
  
      Parameters
      ----------
      text
          Text to be processed.
      """
      processed = self.nlp(text)  # spaCy tokens for text
      self.words = [
          x.text for x in processed
      ]  # list with words in text
      self.positions = [
          x.idx for x in processed
      ]  # positions of words in text
      self.punctuation = [
          x for x in processed if x.is_punct
      ]  # punctuation in text
      self.tokens = processed
  
      # find similar words
      self.find_similar_words()
  
      # set dtype
      self.set_data_type()
  
imports: import logging
  from abc import abstractmethod
  from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union
  import numpy
  import spacy
label_desc: Use image node_id 2 for calling the SimilaritySampler obj's underlying member method code with example usage: obj.set_text(text) without return types