docstr: Parameters
  -------
  term_doc_matrix : TermDocMatrix
  
  Returns
  -------
  
  New term doc matrix
docstr_tok: ["Parameters","--","--","--","-","term_doc_matrix",":","TermDocMatrix","Returns","--","--","--","-","New","term","doc","matrix"]
code: def compact(self, term_doc_matrix, non_text=False):
      """
      Parameters
      -------
      term_doc_matrix : TermDocMatrix
  
      Returns
      -------
  
      New term doc matrix
      """
      count_df = self._get_statistics_dataframe(
          term_doc_matrix, non_text
      )
  
      return term_doc_matrix.remove_terms(
          count_df[count_df["pmi"] < self.minimum_pmi].index,
          non_text=non_text,
      )
  
imports: import numpy
  import pandas
label_desc: Use image node_id 2 for calling the PhraseSelector obj's underlying member method code with example usage: obj.compact(term_doc_matrix, non_text) and returns: term_doc_matrix