Giter VIP home page Giter VIP logo

e2e-metrics's Introduction

E2E NLG Challenge Evaluation metrics

The metrics used for the challenge include:

Running the evaluation

Requirements/Installation

The metrics script requires the following dependencies:

To install the required Python packages, run (assuming root access or virtualenv):

pip install -r requirements.txt

To install the required Perl module, run (assuming root access or perlbrew/plenv):

curl -L https://cpanmin.us | perl - App::cpanminus  # install cpanm
cpanm XML::Twig

Usage

The main entry point is measure_scores.py. The script assumes one instance per line for your system outputs and one entry per line, multiple references for the same instance separated by empty lines for the references (see TGen data conversion). Example human reference and system output files are provided in the example-inputs subdirectory.

./measure_scores.py example-inputs/devel-conc.txt example-inputs/baseline-output.txt

Source metrics scripts

MT-Eval

We used the NIST MT-Eval v13a script adapted for significance tests, from http://www.cs.cmu.edu/~ark/MT/. We adapted the script to allow a variable number of references.

Microsoft COCO Caption Evaluation

These provide a different variant of BLEU (which is not used for evaluation in the E2E challenge), METEOR, ROUGE-L, CIDER. We used the Github code for these metrics. The metrics are unchanged, apart from removing support for images and some of the dependencies.

References

Acknowledgements

Original developers of the MSCOCO evaluation scripts:

Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, David Chiang, Michael Denkowski, Alexander Rush

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.