Giter VIP home page Giter VIP logo

adalogn's Introduction

AdaLoGN: Adaptive Logic Graph Network for Reasoning-Based Machine Reading Comprehension

Code of paper "AdaLoGN: Adaptive Logic Graph Network for Reasoning-Based Machine Reading Comprehension".

Requirements

torch==1.7.1
dgl-cu101==0.6.1
stanza==1.2.3
transformers==4.5.0
networkx
nltk
scikit-learn
pylev

Data Preprocessing

We use Graphene to extract EDUs. We put all the contexts and options line by line in a .txt file and follow the instructions of Graphene to get EDUs outputs. Or you can also use our preprocessed file under directory ReclorDataset/LogiDataset. We also provide cached file of preprocessed datas on Google Drive. Download and put them under directory ReclorDataset/LogiQADataset.

Evaluation

Checkpoints can be accessed on Google Drive.

export MODE=eval_only
bash scripts/LogiGraph_Roberta.sh /PATH/TO/RECLOR/CHECKPOINTS  ## ReClor evaluation
bash scripts/LogiGraph_Roberta_LogiQA.sh /PATH/TO/LOGIQA/CHECKPOINTS  ## LogiQA evaluation

For ReClor dataset, we submit prediction file on ReClor Leaderboard and AdaLoGN achieves Rank #10 on leaderboard (03/15/2022).

Training

You can also install wandb and set export WANDB_DISABLED=false in training scripts to visualize the training process.

export MODE=do_train
bash scripts/LogiGraph_Roberta.sh /PATH/TO/ROBERTA/LARGE  ## ReClor training
bash scripts/LogiGraph_Roberta_LogiQA.sh /PATH/TO/ROBERTA/LARGE  ## LogiQA training

Citation

Please cite this paper kindly in your publications if it helps your research.

@inproceedings{li2022adalogn,
  title={AdaLoGN: Adaptive Logic Graph Network for Reasoning-Based Machine Reading Comprehension},
  author={Li, Xiao and Cheng, Gong and Chen, Ziheng and Sun, Yawei and Qu, Yuzhong},
  booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={7147--7161},
  year={2022}
}

adalogn's People

Contributors

patronum08 avatar petercheng456 avatar

Watchers

James Cloos 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.