class_docstr: LRC from Evert (2023).
  
  A direct translation of the R function from (Evert 2023)
  Stephanie Evert. 2023. Measuring Keyness. https://osf.io/x8z9n.
class_docstr_tok: ["LRC","from","Evert","(","2023",")",".","A","direct","translation","of","the","R","function","from","(","Evert","2023",")","Stephanie","Evert",".","2023",".","Measuring","Keyness",".","https",":","\/\/osf.io\/x8z9n","."]
code: def _get_ns_and_fs(self, args):
      cat_X, ncat_X = self._get_cat_and_ncat(self._get_X())
      n1 = self._get_cat_size()
      n2 = self._get_ncat_size()
      if len(args) == 0:
          f1 = cat_X.sum(axis=0).A1
          f2 = ncat_X.sum(axis=0).A1
      else:
          f1, f2 = self.__get_f1_f2_from_args(args)
      f1 = np.array(f1).astype(np.float64)
      f2 = np.array(f2).astype(np.float64)
      return n1, n2, f1, f2
  
file_path: scattertext/scattertext/termscoring/lrc.py
imports: from typing import Union
  import numpy
  import pandas
  from scipy.stats import beta
  from scattertext import CorpusBasedTermScorer
label_desc: Use image node_id 2 for calling the LRC obj's underlying member method code with example usage: obj._get_ns_and_fs(args) and returns: n1,  n2,  f1,  f2