He-Xingwei commited on
Commit
a3e5265
·
verified ·
1 Parent(s): 192fac5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -3,6 +3,15 @@ license: mit
3
  ---
4
 
5
  This repository contains the checkpoint for the corrector of LIFE, which is trained on the systhetic data for factual error correction with retrieved evidence. Please refer to the code of LIFE at https://github.com/NLPCode/LIFE for more details.
 
 
 
 
 
 
 
 
 
6
 
7
  If you want to use this model in your research, please cite our [paper](https://ojs.aaai.org/index.php/AAAI/article/view/29778/):
8
  ```bash
 
3
  ---
4
 
5
  This repository contains the checkpoint for the corrector of LIFE, which is trained on the systhetic data for factual error correction with retrieved evidence. Please refer to the code of LIFE at https://github.com/NLPCode/LIFE for more details.
6
+ ## Usage
7
+ ```
8
+ # Load the model
9
+ from transformers import AutoConfig, AutoModelForSeq2SeqLM, AutoTokenizer
10
+ tokenizer = AutoTokenizer.from_pretrained("He-Xingwei/LIFE-Corrector-RE")
11
+ model = AutoModelForSeq2SeqLM.from_pretrained("He-Xingwei/LIFE-Corrector-RE")
12
+ ```
13
+
14
+ ## Citation
15
 
16
  If you want to use this model in your research, please cite our [paper](https://ojs.aaai.org/index.php/AAAI/article/view/29778/):
17
  ```bash