docstr: Initializes the category_text_iter
  
  Paramters
  ----------
  category_text_iter : iter<str: category, unicode: document)>
          An iterator of pairs. The first element is a string category
          name, the second the text of a document.
  
    Returns
    ----------
    self: TermDocMatrixFactory
   
docstr_tok: ["Initializes","the","category_text_iter","Paramters","--","--","--","--","--","category_text_iter",":","iter","<","str",":","category",",","unicode",":","document",")",">","An","iterator","of","pairs",".","The","first","element","is","a","string","category","name",",","the","second","the","text","of","a","document",".","Returns","--","--","--","--","--","self",":","TermDocMatrixFactory"]
code: def set_category_text_iter(self, category_text_iter):
      """Initializes the category_text_iter
  
      Paramters
      ----------
      category_text_iter : iter<str: category, unicode: document)>
              An iterator of pairs. The first element is a string category
              name, the second the text of a document.
  
        Returns
        ----------
        self: TermDocMatrixFactory
      """
  
      self._category_text_iter = category_text_iter
      return self
  
imports: import string
  from collections import Counter
  import numpy
  import pandas
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.TermDocMatrix import TermDocMatrix
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 2 for calling the TermDocMatrixFactory obj's underlying member method code with example usage: obj.set_category_text_iter(category_text_iter) and returns: self