项目作者: ying-A

项目描述 :
Implementation of the AAAI-2021 paper Sketch and Customize: A Counterfacutal Story Generator .
高级语言: Python
项目地址: git://github.com/ying-A/SandC.git
创建时间: 2021-03-09T03:34:44Z
项目社区:https://github.com/ying-A/SandC

开源协议:

下载


Implementation of the paper Sketch and Customize: A Counterfacutal Story Generator .

1. Preparation.

  1. pip install -r requierements.txt

2. Get the labels of the causal and background words, and the various types of skeletons.

  1. python get_augment_skeletons.py

3. Training of the sketch model.

  1. bash sketch_train.sh

4. Inference of the sketch model, results will be saved in sketch_pred_results dir.

  1. bash sketch_inference.sh

5. Training of the customize model.

  1. bash customize_train.sh

6. Inference of the customzie models with various types of skeletons.

  1. bash customize_inference.sh

7. Evaluation of the models.

  1. python evaluation.py