The official implementation of ACL 2021 paper "[Engage the Public: Poll Question Generation for Social Media Posts]". This is a joint work with NLP Center at Tencent AI Lab.
All data are stored in the file named data
- The dataset is randomly split into three segments (80% training, 10% validation, 10% testing).
- One line is for each instance.
- For each segment (train/valid/test), we have the source posts (stored in
".*_src.txt"
), comments (stored in".*_conv.txt"
), and question (stored in".*_trg.txt"
).
We give all original code here. Representative commands will be shown later.
This code is mainly adapted from Yue Wang's keyphrase generation code. Thank Yue very much for his support.
- Python 3.5+
- Pytorch 1.6
Any problems, please email: zexin.lu@connect.polyu.hk