docstr: Parameters
  ----------
  convention_df pd.DataFrame, contains parsed_col and metadata
  X, csr_matrix
  mX csr_matrix
  y, np.array
  term_idx_store, IndexStore
  category_idx_store, IndexStore
  parsed_col str, column in convention_df containing parsed documents
  category_col str, columns in convention_df containing category
  unigram_frequency_path str, None by default, path of unigram counts file
docstr_tok: ["Parameters","--","--","--","--","--","convention_df","pd.DataFrame",",","contains","parsed_col","and","metadata","X",",","csr_matrix","mX","csr_matrix","y",",","np.array","term_idx_store",",","IndexStore","category_idx_store",",","IndexStore","parsed_col","str",",","column","in","convention_df","containing","parsed","documents","category_col","str",",","columns","in","convention_df","containing","category","unigram_frequency_path","str",",","None","by","default",",","path","of","unigram","counts","file"]
code: def __init__(
      self,
      df,
      X,
      mX,
      y,
      term_idx_store,
      category_idx_store,
      metadata_idx_store,
      parsed_col,
      category_col,
      unigram_frequency_path=None,
  ):
      """
  
      Parameters
      ----------
      convention_df pd.DataFrame, contains parsed_col and metadata
      X, csr_matrix
      mX csr_matrix
      y, np.array
      term_idx_store, IndexStore
      category_idx_store, IndexStore
      parsed_col str, column in convention_df containing parsed documents
      category_col str, columns in convention_df containing category
      unigram_frequency_path str, None by default, path of unigram counts file
      """
      ParsedDataFrameCorpus.__init__(self, parsed_col, category_col)
      DataFrameCorpus.__init__(
          self,
          X,
          mX,
          y,
          term_idx_store,
          category_idx_store,
          metadata_idx_store,
          df[self._parsed_col],
          df,
          unigram_frequency_path,
      )
  
imports: import sys
  from typing import Dict, Hashable
  import pandas
  from scattertext.DataFrameCorpus import DataFrameCorpus
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 1 to create a new ParsedCorpus object from inherited base classes: ParsedDataFrameCorpus with example: obj = ParsedCorpus(df, X, mX, y, term_idx_store, category_idx_store, metadata_idx_store, parsed_col, category_col, unigram_frequency_path)