docstr: Get matches for each ground truth and retrieved/generated pair for a given question
docstr_tok: ["Get","matches","for","each","ground","truth","and","retrieved\/generated","pair","for","a","given","question"]
code: def get_matches(
      self, gt_embeddings, test_embeddings, threshold: float = 0.7
  ) -> List[int]:
      """Get matches for each ground truth and retrieved/generated pair for a given question"""
  
      cosine_similarities = self.calculate_cosine_similarities(
          gt_embeddings=gt_embeddings, test_embeddings=test_embeddings
      )
  
      matches = [
          self.check_match(cosine_similarity, threshold=threshold)
          for cosine_similarity in cosine_similarities
      ]
  
      return matches
  
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 14 for calling the WriterEvaluator obj's underlying member method code with example usage: obj.get_matches(gt_embeddings, test_embeddings, threshold) and returns: matches