Coder Social home page Coder Social logo

linearamr's Introduction

LinearAMR

This project provides the implementation of the models described on the paper Linguistic realisation as machine translation: Comparing different MT models for AMR-to-text generation.

To obtain the results described at the paper, the following scripts need to be executed: build.sh, parallel.sh, pbmt.sh/nmt.sh, realisation.sh and evaluation.sh.

build.sh

This script aims to train the models for compression and preordering both for lexicalised as delexicalised data. Before run the script, update the following variables:

  1. corpus: path for the aligned parallel corpus splitted in training, dev and test sets
  2. path_lex: path where the lexicalised compressor and preordering model should be saved
  3. path_delex: path where the delexicalised compressor and preordering model should be saved

parallel.sh

This script aims to create a parallel corpus among preprocessed AMRs and their respective English texts. Several instances of the corpus are created following the different combinations of AMR preprocessing techniques applied. For more information about these combinations, check Table 1 of the paper, where they are all depicted. Before run the script, update the following variables:

  1. corpus: path for the aligned parallel corpus splitted in training, dev and test sets
  2. path_lex: path where the lexicalised compressor and preordering model should be saved
  3. path_delex: path where the delexicalised compressor and preordering model should be saved

pbmt.sh

Run this script to train, tune and translate using the Phrase-Based Machine Translation paper described. Before run the script, update the following variables:

  1. mosesdecoder: path for moses
  2. mgiza: path for mgiza
  3. lm: path for a 5-gram language model trained with KenLM
  4. data: path where parallel corpora resulted from parallel.sh are

Look that Moses, MGiza and a 5-gram KenLM language model are required to execute this step.

realisation.sh

Run this script to realise the references of the delexicalised outputs. Before run the script, ipdate the following variables:

  1. data: path for the experiment

linearamr's People

Contributors

thiagocf05 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kadarakos

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.