lipiji / Songnet
Code for ACL 2020 paper "Rigid Formats Controlled Text Generation":https://arxiv.org/abs/2004.08022
Stars: ✭ 139
Programming Languages
python
139335 projects - #7 most used programming language
SongNet
@inproceedings{li-etal-2020-rigid,
title = "Rigid Formats Controlled Text Generation",
author = "Li, Piji and Zhang, Haisong and Liu, Xiaojiang and Shi, Shuming",
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
month = jul,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.acl-main.68",
doi = "10.18653/v1/2020.acl-main.68",
pages = "742--751"
}
Run
- python prepare_data.py
- ./train.sh
Evaluation
- Modify test.py: m_path = the best dev model
- ./test.sh
- python metrics.py
Polish
- ./polish.sh
Download
- The pretrained Chinese Language Model: https://drive.google.com/file/d/1g2tGyUwPe86vPn2nub1vkQva5lwtZ6Rd/view
- The finetuned SongCi model: https://drive.google.com/file/d/16A2AzuU7slf7xj2QdLcBAorUCCaCk650/view
Reference
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].