News is More than a Collection of Facts: Moral Frame Preserving News Summarization - code

DOI:10.4121/7b387539-0f9b-4143-b960-76eeef8886ab.v1
The DOI displayed above is for this specific version of this dataset, which is currently the latest. Newer versions may be published in the future. For a link that will always point to the latest version, please use
DOI: 10.4121/7b387539-0f9b-4143-b960-76eeef8886ab

Datacite citation style

Liscio, Enrico; Lorandi, Michela; Murukannaiah, Pradeep K. (2025): News is More than a Collection of Facts: Moral Frame Preserving News Summarization - code. Version 1. 4TU.ResearchData. software. https://doi.org/10.4121/7b387539-0f9b-4143-b960-76eeef8886ab.v1
Other citation styles (APA, Harvard, MLA, Vancouver, Chicago, IEEE) available at Datacite

Software

Code used to generate summaries that preserve the moral framing of the original news article. We leverage the zero-shot summarization ability of Large Language Models, shown to produce results on par with human-generated summaries. We compare three language models and five prompting methods. Leveraging the intuition that journalists intentionally use or report moral-laden words in the article text, we propose approaches that first identify moral-laden words in the article (e.g., through Chain-of-Thought or supervised classification) and then guide the language model in preserving such words in the summary.

History

  • 2025-07-30 first online, published, posted

Publisher

4TU.ResearchData

Format

Python code

Funding

  • Hybrid Intelligence (HI): augmenting human intellect (grant code 024.004.022) [more info...] Dutch Research Council
  • AlgoSoc - Public values in the algorithmic society (grant code 024.005.017) [more info...] Dutch Ministry of Education, Culture and Science (OCW)

Organizations

TU Delft, Faculty of Electrical Engineering, Mathematics and Computer Science, Department of Intelligent Systems; ADAPT Research Centre, Dublin City University

To access the source code, use the following command:

git clone https://data.4tu.nl/v3/datasets/4727197d-5819-4871-9432-ec3bba1260e6.git

Or download the latest commit as a ZIP.