def METHOD_NAME(label_file, pred_file):
  """Compute accuracy, each line contains a label."""
  with codecs.getreader("utf-8")(tf.io.gfile.GFile(label_file, "rb")) as label_fh:
    with codecs.getreader("utf-8")(tf.io.gfile.GFile(pred_file, "rb")) as pred_fh:
      count = 0.0
      match = 0.0
      for label in label_fh:
        label = label.strip()
        pred = pred_fh.readline().strip()
        if label == pred:
          match += 1
        count += 1
  return 100 * match / count