code: def get_reduced_size(self, reduced_query, verbose=True):
      reduced_query_words = reduced_query.split(" ")
      set_common = set(self.df["Lemma"].values.tolist())
      num_common = len(
          [x.lower() in set_common for x in reduced_query_words]
      )
      frac_common = (
          num_common / len(reduced_query) if reduced_query else 0
      )
      # FIXME: report to user bad query that uses too many common words
      if verbose:
          print("frac_common: %s" % frac_common, flush=True)
  
file_path: h2ogpt/metrics/quip.py
imports: import os
  import datasets
  import pandas
  import sacrebleu
  from packaging import version
  from sacrebleu import CHRF
  import string
  import evaluate
label_desc: Use image node_id 4 for calling the Quip obj's underlying member method code with example usage: obj.get_reduced_size(reduced_query, verbose) without return types