Code Monkey home page Code Monkey logo

heterfc's Introduction

Heterogenous Graph Reasoning for Fact Checking over Texts and Tables

modelstruct

This is the code for the AAAI-24 Paper:Heterogenous Graph Reasoning for Fact Checking over Texts and Tables.

Usage

  1. Download Roberta pretrained model and put related files into directory roberta-large-snli_mnli_fever_anli_R1_R2_R3-nli/

  2. Prepare dataset and Wikidump. Link. As a result, you should rename the wikidump to feverous_wikiv1.db as well as the dataset splits: train.jsonl,dev.jsonl and test.jsonl.

  3. Follow DCUF's work and generate retrieved evidence files for the three splits. See [GitHub Link](https://github.com/lanlanabcd/dual_ channel_feverous) for more instruction on generating retrieved evidence file. After the retrieval process, the results should be three files named as dev.combined.not_precomputed.p5.s5.t3.cells.jsonl, train.combined.not_precomputed.p5.s5.t3.cells.jsonl and test.combined.not_precomputed.p5.s5.t3.cells.jsonl.

  4. Run python train.py to run the training process. It includes a preprocess procedure for the dataset splits and evaluation on dev split.

  5. To evaluate the performance on test split, online judge is needed. You can also check our submission result on the online judge system. To generate file to submit run the following code: python testresult.py; python generatesubmitfile.py --input_file tosubmit.csv

Requirements

  • python3
  • jsonlines
  • pytorch
  • torch-geometric

Citation

Please cite our paper if you use the code:

@inproceedings{gong2024heterogeneous,
  title={Heterogeneous Graph Reasoning for Fact Checking over Texts and Tables},
  author={Gong, Haisong and Xu, Weizhi and Wu, Shu and Liu, Qiang and Wang, Liang},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={38},
  number={1},
  pages={100--108},
  year={2024}
}

heterfc's People

Contributors

deno-v avatar opilgrim avatar

Stargazers

 avatar Tongzhou Wu avatar Markus Rauhalahti avatar  avatar

Watchers

 avatar

Forkers

avudzor deno-v

heterfc's Issues

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.