def read_candidates(self, input_pattern):
    """Read candidates from an input pattern."""
    input_paths = tf.gfile.Glob(input_pattern)
    final_dict = {}
    for input_path in input_paths:
      file_obj = tf_io.gopen(input_path)
      final_dict.update(postproc.read_candidates_from_one_split(file_obj))
    return final_dict
Read candidates from an input pattern.
language/canine/tydiqa/run_tydi_lib.py