Skip to content
Code for ACL 2019 paper "Enhancing Topic-to-Essay Generation with External Commonsense Knowledge "
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
imgs
.gitignore update Jul 23, 2019
README.md change figure format Aug 13, 2019
config.py update code: Jun 1, 2019
cteg.py fix label num bug Aug 13, 2019
dataloader.py first commit Jun 1, 2019
discrminator.py first commit Jun 1, 2019
generator.py remove pyc from index Jun 1, 2019
memory_wrapper.py update code: Jun 1, 2019
util.py first commit Jun 1, 2019

README.md

CTEG

Commonsense enhanced Topic-to-Essay Generation: code for ACL 2019 paper "Enhancing Topic-to-Essay Generation with External Commonsense Knowledge".

Corresponding codes of MTA baselines can be found at MTA-LSTM.

Model

Overview

Model-detail

Requirements

  • Python 3
  • TensorFlow >= 1.7

Data

Data can be downloaded from Baidu Cloud

Run

  1. Unzip the data and place it according to the path in config.py
  2. Run python3 cteg.py

Feel free to contact me or raise an issue if you meet any problems.

Citation

If you use this code or the corresponding baseline code, please kindly cite our paper:

@inproceedings{yang2019enhancing,
  title={Enhancing Topic-to-Essay Generation with External Commonsense Knowledge},
  author={Yang, Pengcheng and Li, Lei and Luo, Fuli and Liu, Tianyu and Sun, Xu},
  booktitle={Proceedings of the 57th Conference of the Association for Computational Linguistics},
  pages={2002--2012},
  year={2019}
}
You can’t perform that action at this time.