Giter Site home page Giter Site logo

multitasksimplification's Introduction

This repository contains the code for our COLING 2018 paper:

Dynamic Multi-Level Multi-Task Learning for Sentence Simplification.

Data Preprocessing

Please follow the instructions from Zhang et al. 2017 for downloading the pre-processed dataset. To build the .bin files please follow the instructions from See et al. 2017, or here.

Evaluation Set-Up

  • Please follow the instructions from Zhang et al. 2017 for setting up the evaluation system.
  • FKGL implementations can be found in this repo.
  • Modify corresponding directories in evaluation_utils/sentence_simplification.py.
  • Please note that evaluation metrics are calculated on corpus level.

Dependencies

python 2.7
tensorflow 1.4

Usage

CUDA_VISIBLE_DEVICES="GPU_ID" python run.py \
    --mode "string" \
    --vocab_path "/path/to/vocab/file" \
    --train_data_dirs "/path/to/trainig/data_1,/path/to/trainig/data_2,/path/to/trainig/data_3" \
    --val_data_dir "/path/to/validation/data_1" \
    --decode_data_dir "/path/to/decode/data_1" \
    --eval_source_dir "/path/to/validation/data_1.source" \
    --eval_target_dir "/path/to/validation/data_1.target" \
    --max_enc_steps "int" --max_dec_steps "int" --batch_size "int" --steps_per_eval "int" \
    --log_root "/path/to/log/root/" --exp_name "string" [--autoMR] \
    --lr "float" --beam_size "int" --soft_sharing_coef "float"  --mixing_ratios "mr_1,mr_2"\
    --decode_ckpt_file "/path/to/ckpt" --decode_output_file "/path/to/file"

Pretrained models can be found here.

Citation

@inproceedings{guo2018dynamic,
    title = {Dynamic Multi-Level Multi-Task Learning for Sentence Simplification},
    author = {Han Guo and Ramakanth Pasunuru and Mohit Bansal},
    booktitle = {Proceedings of the 27th International Conference on Computational Linguistics (COLING 2018)},
    year = {2018}
}

multitasksimplification's People

Contributors

hanguo97 avatar

Watchers

 avatar

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.