RNN_Text_Generation_Tensorflow icon indicating copy to clipboard operation
RNN_Text_Generation_Tensorflow copied to clipboard

How to change to to word-level?

Open sunsidazzz opened this issue 7 years ago • 3 comments

Nice work! It is very clear and easy to understand!

I am wondering how could I change it to a word-level Generator?

sunsidazzz avatar Aug 18 '17 23:08 sunsidazzz

You may try to use a system for word embedding to convert words to dense input vectors and to decode the outputs of the network. This should work reasonably well as long as semantically similar words get mapped to similar vectors. You should try and look for word-rnn code here on github to get further ideas. In particular, you should think of some ways of sampling the output of the network, which would not be as trivial as with the one-hot-encoding of char-rnn. :)

spiglerg avatar Aug 19 '17 16:08 spiglerg

Thanks for the response! 👍 I am thinking to use the word2vec embedding with the LSTM Model. Do you think that's a good direction to build the word-level rnn?

sunsidazzz avatar Aug 19 '17 22:08 sunsidazzz

Yep, I think that's the way to go! :)

spiglerg avatar Aug 20 '17 11:08 spiglerg