Skip to content

marekstrong/Zero-NatVer

Repository files navigation

Zero-NatVer

https://arxiv.org/abs/2410.03341

Setup

Clone Zero-NatVer:

git clone https://github.com/marekstrong/Zero-NatVer
cd Zero-NatVer

Then, setup a new conda environment:

conda env create -f environment.yml
conda activate zeronatver

LLama3

The current Zero-NatVer codebase is based on Llama3 (meta-llama/Meta-Llama-3-8B-Instruct). To download and test the model, run the following script:

python ./llm/test_llm.py

This script runs several unit tests to test that the core functionality works and that all query types are supported.

Quick Start

You can run Zero-NatVer on a preprocessed version of SciFact using the following command:

python ./zeronatver.py \
  -j "test/data/scifact_withevidence_norm.jsonl" \
  -o "test/out.jsonl" \
  --align-constrains-type "post" \
  --claim-location "claim_preprocessed" \
  --evidence-location "evidence_preprocessed"

Citation

If you find this work useful, please cite us:

@inproceedings{strong2024zero,
  title={Zero-Shot Fact Verification via Natural Logic and Large Language Models},
  author={Strong, Marek and Aly, Rami and Vlachos, Andreas},
  booktitle={Findings of the Association for Computational Linguistics: EMNLP 2024},
  pages={17021--17035},
  year={2024}
}

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published