def answer_match(self, q_key, p_key, answers=None):
    """Compute whether the query matches the passage."""
    if not answers:
      if str(q_key) not in self.answers_table:
        answers = []
      else:
        answers = self.answers_table[str(q_key)].split("\n")
    return p_key in answers
Compute whether the query matches the passage.
language/multivec/preprocessing/create_training_data.py