code: def __init__(self, corpus: ParsedCorpus, *args, **kwargs):
      self.corpus_ = corpus
      self.category_ids_ = corpus._y
      self.tdf_ = None
      self.term_ranker_ = self._get_default_ranker(corpus)
      self.use_metadata_ = False
      self.category_name_is_set_ = False
      self._doc_sizes = None
      self._set_scorer_args(**kwargs)
  
imports: from abc import ABCMeta, abstractmethod
  from typing import Tuple
  import numpy
  import pandas
  from scattertext.ParsedCorpus import ParsedCorpus
  from scipy import stats
  from scipy.sparse import vstack
  from scattertext.util import inherits_from
  from scattertext.termranking import AbsoluteFrequencyRanker
  from scattertext.termranking.TermRanker import TermRanker
label_desc: Use image node_id 1 to create a new CorpusBasedTermScorer object from inherited base classes:  with example: obj = CorpusBasedTermScorer(corpus)