def emit(self, query_info, passage_infos):
    """Make an InputExample from the query+caniddates."""
    text_b_list = []
    text_b_guids = []
    labels = []
    scores = []
    for p in passage_infos:
      text_b_list.append(p.text)
      text_b_guids.append(p.id)
      labels.append(float(p.label))
      scores.append(float(p.score))

    return InputExample(query_info.id, query_info.text, text_b_list,
                        text_b_guids, labels, scores)
Make an InputExample from the query+caniddates.
language/multivec/preprocessing/create_training_data.py