class_docstr: Filter out terms below a particular frequency or pmi threshold.
class_docstr_tok: ["Filter","out","terms","below","a","particular","frequency","or","pmi","threshold","."]
docstr: Parameters
  ----------
  pmi_threshold_coef : float
          Bigram filtering threshold (2 * PMI). Default 2.
  minimum_term_freq : int
          Minimum number of times term has to appear.  Default 3.
docstr_tok: ["Parameters","--","--","--","--","--","pmi_threshold_coef",":","float","Bigram","filtering","threshold","(","2","*","PMI",")",".","Default","2.","minimum_term_freq",":","int","Minimum","number","of","times","term","has","to","appear",".","Default","3","."]
code: def __init__(
      self,
      pmi_threshold_coef=DEFAULT_PMI_THRESHOLD_COEFFICIENT,
      minimum_term_freq=3,
  ):
      """
      Parameters
      ----------
      pmi_threshold_coef : float
              Bigram filtering threshold (2 * PMI). Default 2.
      minimum_term_freq : int
              Minimum number of times term has to appear.  Default 3.
  
      """
      self._threshold_coef = pmi_threshold_coef
      self._min_freq = minimum_term_freq
  
file_path: scattertext/scattertext/TermDocMatrixFilter.py
imports: from collections import Counter
  import numpy
  from scattertext.Common import DEFAULT_PMI_THRESHOLD_COEFFICIENT
label_desc: Use image node_id 1 to create a new TermDocMatrixFilter object from inherited base classes: object with example: obj = TermDocMatrixFilter(pmi_threshold_coef, minimum_term_freq)