0
$\begingroup$

Most of the blogs that I have read talk about RNNs automatically generating paragraphs of text based on the data it is trained with. For example, RNNs that can auto-generate script for an entire episode of Silicon valley. There are some RNNs that generate text based on a sentence given as input. For example, generating movie review based on an input sentence.

My question is, can a RNN generate text based on a keyword? For example, if I type "Europe", it should generate a travel blog on Europe. If I type "Airbnb", it should generate a review of my stay. The examples might sound too generic, but the idea is to know if a RNN can generate different "styles" of text depending on the type of keyword used. If this is possible, in what way would training this model vary from training a vanilla LSTM model?

$\endgroup$

1 Answer 1

1
$\begingroup$

In theory, that's feasible, since the encoder just summarizes the input text into 1 vector in a typical sequence to sequence model, and the decoder is pretty much a conditioned language model. (I'm aware that more advanced sequence to sequence models use attention, copy mechanism, and so on.)

In practice, you'll need a training set, and given the current state-of-the-art you're probably better off doing some information retrieval to retrieve blog posts of interest given the keywords.

$\endgroup$
1
  • $\begingroup$ How different would training this model be as compared to a vanilla LSTM? $\endgroup$
    – bot4u
    Commented May 11, 2018 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.