docstr: Extract rouge scores from dataframe
docstr_tok: ["Extract","rouge","scores","from","dataframe"]
code: def extract_rogue_scores(
      self, df: pd.DataFrame, rogue_scores_col: str = "rouge_scores"
  ):
      """Extract rouge scores from dataframe"""
      rouge_metrics = ["rouge1", "rougeL"]
      supported_metrics = ["precision", "recall", "fmeasure"]
  
      for rouge_metric in rouge_metrics:
          for supported_metric in supported_metrics:
              col_name = f"{rouge_metric}_{supported_metric}"
              df[col_name] = df.apply(
                  lambda x: getattr(
                      x[rogue_scores_col][rouge_metric],
                      supported_metric,
                  ),
                  axis=1,
              )
  
              self.store_mean_metric(
                  col_name=col_name, mean_metric=df[col_name].mean()
              )
  
imports: import ast
  from collections import defaultdict
  from typing import List
  import nltk
  import pandas
  from nltk import word_tokenize
  from nltk.translate.bleu_score import sentence_bleu
  from nltk.translate.meteor_score import meteor_score
  from rouge_score import rouge_scorer
  from scipy.spatial import distance
  from mindsdb.integrations.handlers.writer_handler.settings import WriterHandlerParameters
  from mindsdb.utilities import log
label_desc: Use image node_id 17 for calling the WriterEvaluator obj's underlying member method code with example usage: obj.extract_rogue_scores(df, rogue_scores_col) without return types