To generate the desired affective text (emotion category and intensity), use the colab notebook AffectiveTextGen.ipynb.
If you want to use our work in your research, please cite:
@misc{singh2020adapting,
title={Adapting a Language Model for Controlled Affective Text Generation},
author={Ishika Singh and Ahsan Barkati and Tushar Goswamy and Ashutosh Modi},
year={2020},
eprint={2011.04000},
archivePrefix={arXiv},
primaryClass={cs.CL}
}