def get_top_output(source, wrapper, nodes_per_rule_per_cell=1, verbose=False):
  """Return highest scoring target string if can be parsed by target grammar."""
  outputs = get_top_outputs(
      source,
      wrapper,
      topk=1,
      nodes_per_rule_per_cell=nodes_per_rule_per_cell,
      verbose=verbose)
  return outputs[0]
Return highest scoring target string if can be parsed by target grammar.
language/compgen/csl/model/inference/inference_parser.py