Giter Site home page Giter Site logo

maherr13 / dansum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danish-summarisation/dansum

0.0 0.0 1.0 52.13 MB

This repository is for the development of Danish abstractive summarisation models.

License: Apache License 2.0

Python 100.00%

dansum's Introduction

Installations

The Notebook contains the packages need for running the project on colab.

Data

The notebook contains downloading the data into colab.

Processing the data

The data should be processed using two scripts clean_data.py and prepare_data_splits.py

example for using with the arguments:

python clean_data.py --dataset_path /content/unbait-dataset-full.json --output_path /content/data/tok_ds_clean_.csv

and

python prepare_data_splits.py --input_path /content/data/tok_ds_clean_.csv --train_output_path /content/data/train_all_.csv --val_output_path /content/data/val_abstractive_.csv --test_output_path /content/data/test_abstractive_.csv

once you do this process you can save the data and use it directly in the training scripts.

Training

training should be done using train.py the script argument are in config file

the most important arguments are:

  • model_checkpoint: "google/mt5-small" # str: e.g. "google/mt5-base" or "google/mt5-large" or "google/mt5-xl" or "google/mt5-xxl"
  • train_path: "/content/drive/MyDrive/models/danish/data/train_all_.csv" # str
  • val_path: "/content/drive/MyDrive/models/danish/data/val_abstractive_.csv" # str
  • test_path: "/content/drive/MyDrive/models/danish/data/test_abstractive_.csv" # str
  • quantiz: False #wether to have a quantized training or not

dansum's People

Contributors

sarakolding avatar idabh avatar katrinenymann avatar kennethenevoldsen avatar maherr13 avatar signekb avatar

Forkers

younestouati

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.