code: def _balance_scores(cat_scores, not_cat_scores):
      scores = np.zeros(len(cat_scores))
      scores[cat_scores < not_cat_scores] = (
          np.sqrt(2) - cat_scores[cat_scores < not_cat_scores]
      )
      scores[not_cat_scores < cat_scores] = -(
          np.sqrt(2) - not_cat_scores[not_cat_scores < cat_scores]
      )
      return ((scores / np.sqrt(2)) + 1.0) / 2
  
file_path: scattertext/scattertext/termscoring/CornerScore.py
imports: import numpy
  from scipy.stats import rankdata
label_desc: Use image node_id 2 for calling the CornerScore obj's underlying member method code with example usage: obj._balance_scores(cat_scores, not_cat_scores) and returns: unknown