Here's a word-level text generation example with LSTM, starting from raw text files, in less than 50 lines of Keras & TensorFlow.https://colab.research.google.com/drive/1B9yLXcJ7Q76EUoim-2Xy7Dk1gC1pFdU1 …
-
-
It uses a utility to read text files, a text vectorization layer (useful for any NLP), the LSTM layer and the functional API, the callbacks infrastructure, and the default training loop.
Show this thread -
All of the problem-specific logic fits in 50 lines because language models are conceptually simple. A simple API means making conceptually simple things easy to implement
Show this thread
End of conversation
New conversation -
-
-
magic
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.