def get_exact(candidate, refs):
  """Compute exact match score for candidate and list of references."""

  candidate = candidate.strip()

  for ref in refs:
    if candidate == ref.strip():
      return 1.0

  return 0.0