Large Language Models, NLP, Python, AI.
""" Compute ROUGE scores on a batch of articles. This is a convenience function wrapping Hugging Face `rouge_score`, which expects sentences to be separated by newlines. :param generated: Summaries (list of strings) produced by the model :param reference: Ground-truth summaries (list of strings)