How can I implement a GAN network for text (review) generation?
Please, can someone guide me to resource (code) to help in text generation?
Artificial Intelligence Stack Exchange is a question and answer site for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment. It only takes a minute to sign up.Sign up to join this community
As @Clement mentions, text_gen_description gives a good overview!, but the paper seqGAN paper describes the REINFORCE approach more in depth, as they are the first to do it (i believe). This is probably the approach most take now of days when going the GAN route.
Note that just basic MLE training has shown promise with openAI's GPT2. When i need a text generator, fine tuning one of the provided models is usually my goto.
Also if your looking for seq gans code base (you asked for example code) here is is: git repo
For the resources, you can refer to this: https://becominghuman.ai/generative-adversarial-networks-for-text-generation-part-1-2b886c8cab10 If you want to generate text review for specific score, you can input a noise vector and the score to the generator. You could also make a vector filled with the number of score and add noise to that vector instead.