Giter Site home page Giter Site logo

amr-sg's Introduction

AMR-SG

Code for our ACL Findings 2021 paper,

Dynamic Semantic Graph Construction and Reasoning for Explainable Multi-hop Science Question Answering

Weiwen Xu, Huihui Zhang, Deng Cai and Wai Lam.

Data Preparation

We present the results on OpenBookQA and ARC-Challenge in our paper. Due to the license issue, please directly download the datasets from their corresponding websites.

Data Annotation

  1. We use this repo as our hypothesis generator and AMR-gs as our AMR parser. Please follow their instructions to annotate hypothesis and AMR for the datasets respectively.

    Once annotated, please organize the annotated files in the following directory (e.g. OpenBookQA)

    • Data/
      • obqa/
        • train.jsonl (train/dev/test original datasets)
        • dev.jsonl
        • test.jsonl
        • train-hypo.txt (train/dev/test hypotheses)
        • dev-hypo.txt
        • test-hypo.txt
        • train-amr.txt (train/dev/test AMRs)
        • dev-amr.txt
        • test-amr.txt
        • core-amr.txt (core fact AMRs from open-book)
        • comm-amr.txt (common fact AMRs from ARC-Corpus)
  2. Create ElasticSearch Server

python data_preprocess/store_corpus.py --task_name ${input_file}

  1. Data Preprocessing:

bash do_preprocess.sh ${input_file} (e.g. Data/obqa)

  1. Retrieve Facts:

bash do_retrieve.sh ${input_file}

Training

bash do_finetune.sh

Citation

If you find this work useful, please star this repo and cite our paper as follows:

@inproceedings{xu-etal-2021-dynamic,
    title = "Dynamic Semantic Graph Construction and Reasoning for Explainable Multi-hop Science Question Answering",
    author = "Xu, Weiwen  and
      Zhang, Huihui  and
      Cai, Deng  and
      Lam, Wai",
    booktitle = "Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.findings-acl.90",
    doi = "10.18653/v1/2021.findings-acl.90",
    pages = "1044--1056",
}

amr-sg's People

Contributors

wwxu21 avatar

Stargazers

🤡🐀 avatar Chau Nguyen avatar  avatar Peide Zhu avatar Zhu Yihua avatar  avatar Olivia-fsm avatar YHR avatar Han Liao avatar  avatar Siru Ouyang avatar  avatar Luxi Xing avatar 爱可可-爱生活 avatar  avatar Zhuosheng Zhang avatar LI XIN avatar Zuchao Li avatar Piji Li avatar Deng Cai avatar  avatar

Watchers

 avatar  avatar

amr-sg's Issues

Expect for preprocessed dataset

I have constructed the dataset according to your file organization, but I did not get the results in the paper. I wonder if there is a problem with the dataset construction, could you please send me the preprocessed dataset(eg. obqa_test_preprocess). Thanks!

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.