Skip to content
/ MFEC Public

This is the code repo for our paper "Language Memory Can Aid Unsupervised Fact Error Correction".

Notifications You must be signed in to change notification settings

NEUIR/MFEC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Language Memory Can Aid Unsupervised Fact Error Correction

Source code for our paper : Language Memory Can Aid Unsupervised Fact Error Correction.

Click the links below to view our checkpoints

Requirement

1. Install the following packages using Pip or Conda under this environment

Python==3.9
Pytorch
transformers

We provide the version file requirements.txt of all our used packages, if you have any problems configuring the environment, please refer to this document.

Reproduce MFEC

Download Code & Dataset

  • First, use git clone to download this project:
git clone https://github.com/NEUIR/MFEC
cd MFEC

Train MFEC

I will show you how to reproduce the results in the MFEC paper.

  • Go to the model folder and train the MFEC model checkpoint:
cd model
bash train.sh

Inference MFEC

  • For the FEVER and SCIFACT dataset: Go to the inference folder and inference on the MFEC model:
cd inference
bash inference_final.sh

Evaluate Prediction Effectiveness

  • These experimental results are shown in Table 1 of our paper.
  • Go to the evals folder and evaluate model performance as follow:
cd evals
bash evals.sh
python chatgpt_gpteval.py
python sentencebert.py

Contact

If you have questions, suggestions, and bug reports, please email:

About

This is the code repo for our paper "Language Memory Can Aid Unsupervised Fact Error Correction".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published