GithubHelp home page GithubHelp logo

lujunru / chime Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 50 KB

[COLING 2020] CHIME: Cross-passage Hierarchical Memory Network for Generative Review Question Answering

License: MIT License

Python 100.00%

chime's Introduction

CHIME: Cross-passage Hierarchical Memory Network for Generative Review Question Answering

This repository contains PyTorch implementation of the corresponding COLING 2020 Paper.

Breif Introduction

CHIME is a cross-passage hierarchical memory network for generative question answering (QA). It extends XLNet introducing an auxiliary memory module consisting of two components: the context memory collecting cross-passage evidences, and the answer memory working as a buffer continually refining the generated answers. A sample of syntactically well-formed answers show the efficacy of CHIME.

Dependency

python 3.7.7
apex 0.1
bert-score 0.3.4
BLEURT 0.0.1
nltk 3.4.5
rouge 1.0.0
torch 1.4.0
torchtext 0.5.0
transformers 2.8.0

Data

  • AmazonQA: Raw data can be downloaded from AmazonQA Project
  • Details of building experimental subsets are included in build_data.py. The subsets we used are uploaded here

Running

Change task type for model training, testing, predicting, analyzing and evaluating. In particular, analyzing refers to reveal model's interoperability by listing intermediate answers

python3 run_chime.py --devices 0,1 --model xlnet-base-cased --root_path YourDataPath --data_size 1.0 --epochs 3
--batch_size_perGPU 1 --model_output_path YourModelPath --prediction_output_path YourPredictionPath
--evaluation_output_path YourEvaluationPath --rev_num 10 --ans_num 1 --task Train

Licence

MIT

Citation

@inproceedings{chime2020,
    author = {Lu, Junru and Pergola, Gabriele and Gui, Lin and Li, Binyang and He, Yulan},
    title = {Chime: Cross-passage Hierarchical Memory Network for Generative Review Question Answering},
    booktitle = {The 28th International Conference on Computational Linguistics},
    year = {2020}
}

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.