Giter Site home page Giter Site logo

dansum's Introduction

About The Project

This repository contains the code for developing an automatic abstractive summarisation tool in Danish.

The model can be used for summarisation of individual news articles through the huggingface API.

Abstract

Automatic abstractive text summarization is a challenging task in the field of natural language processing. This paper presents a model for domain-specific summarization for Danish news articles, DanSumT5; an mT5 model fine-tuned on a cleaned subset of the DaNewsroom dataset consisting of abstractive summary-article pairs. The resulting state-of-the-art model is evaluated both quantitatively and qualitatively, using ROUGE and BERTScore metrics and human rankings of the summaries. We find that although model refinements increase quantitative and qualitative performance, the model is still prone to factual errors. We discuss the limitations of current evaluation methods for automatic abstractive summarization and underline the need for improved metrics and transparency within the field. We suggest that future work should employ methods for detecting and reducing errors in model output and methods for referenceless evaluation of summaries.

Key words: automatic summarisation, transformers, Danish, natural language processing

Model performance

The models were fine-tuned using hyperparameter search. These are the quantitative results of our model-generated summaries:

Model ROUGE-1 ROUGE-2 ROUGE-L BERTScore
DanSum-mT5-small 21.42 [21.26, 21.55] 6.21 [6.11, 6.30] 16.10 [15.98, 16.22] 88.28 [88.26, 88.31]
DanSum-mT5-base 23.21 [23.06, 23.36] 7.12 [7.00, 7.22] 17.64 [17.50, 17.79] 88.77 [88.74, 88.80]
DanSum-mT5-large 23.76 [23.60, 23.91] 7.46 [7.35, 7.59] 18.25 [18.12, 18.39] 88.97 [88.95, 89.00]

To get a better understanding of the model's performance, we also had two of the authors to blindly (without knowledge of which model generated which summary) rank the model-generated summaries for 100 articles.

Get started

  • The DaNewsroom data set can be accessed upon request (https://github.com/danielvarab/da-newsroom)
  • Clone the repo
    git clone https://github.com/Danish-summarisation/DanSum
  • Install required modules
    pip install -r requirements.txt

Acknowledgments

dansum's People

Contributors

sarakolding avatar idabh avatar katrinenymann avatar kennethenevoldsen avatar signekb avatar

Stargazers

 avatar  avatar Emil Lykke Jensen avatar  avatar  avatar

Forkers

maherr13

dansum's Issues

Add threshold for abstractive summaries.

E.g.

python train.py --learning_rate 0.5 --abstractive_threshold 0.4

test set should still include abstractive (as well as mixed and extractive). Validation set should be abstractive.

Text length contraints

Currently, it is set arbitrarily. However, it might be worth examining what other people have done.

Suggestion for hyperparameter search grid

w. early stopping on model training.

  • learning rate categorical [5e-4, 5e-5, 5e-6],or continuous between [5e-4, 5e-6]
  • dataset density threshold, continuous [1.5-8]
  • learning rate scheduler categorical [constant, linear decay, ...]
  • warm-up steps [10%]
  • fp16: True
    gradient clipping, num_beam, min_length, max_length, dropout rate: find suitable values in literature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.