def decode_summary(summary_tokens, tokenizer):
    """Decode the summary and return it in a format
    suitable for evaluation.
    """
    summary_tokens = summary_tokens.to("cpu").numpy()
    summary = tokenizer.decode(summary_tokens)
    sentences = summary.split(".")
    sentences = [s + "." for s in sentences]
    return sentences
Decode the summary and return it in a format
    suitable for evaluation.
    
dpkd/transformers/examples/research_projects/bertabs/run_summarization.py