All Projects → campdav → text-rnn-tensorflow

campdav / text-rnn-tensorflow

Licence: MIT license
Tutorial: Multi-layer Recurrent Neural Networks (LSTM, RNN) for text models in Python using TensorFlow.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to text-rnn-tensorflow

Ml Ai Experiments
All my experiments with AI and ML
Stars: ✭ 107 (+386.36%)
Mutual labels:  text, rnn
idr-notebooks
Jupyter Notebooks for the Image Data Resource
Stars: ✭ 14 (-36.36%)
Mutual labels:  notebook
Clockwork-RNN
This repository is a reproduction of the clockwork RNN paper.
Stars: ✭ 20 (-9.09%)
Mutual labels:  rnn
LearningPath
Learning repository
Stars: ✭ 143 (+550%)
Mutual labels:  notebook
MineColab
Run Minecraft Server on Google Colab.
Stars: ✭ 135 (+513.64%)
Mutual labels:  notebook
WindowTextExtractor
WindowTextExtractor allows you to get a text from any window of an operating system including asterisk passwords
Stars: ✭ 128 (+481.82%)
Mutual labels:  text
xp
A framework (comand line tool + libraries) for creating flexible compute pipelines
Stars: ✭ 54 (+145.45%)
Mutual labels:  notebook
Geist
A free text/code editor made with C++ and Qt
Stars: ✭ 27 (+22.73%)
Mutual labels:  text
react-native-text-area
Simple and easy to use TextArea for React Native.
Stars: ✭ 20 (-9.09%)
Mutual labels:  text
text-style-editor
Text style editor widget for flutter
Stars: ✭ 25 (+13.64%)
Mutual labels:  text
Omeclone
A clone of omegle.com
Stars: ✭ 66 (+200%)
Mutual labels:  text
node-poppler
Asynchronous node.js wrapper for the Poppler PDF rendering library
Stars: ✭ 97 (+340.91%)
Mutual labels:  text
notesnook
A fully open source & end-to-end encrypted note taking alternative to Evernote.
Stars: ✭ 5,098 (+23072.73%)
Mutual labels:  notebook
markovifyR
Markovify wrapper for R
Stars: ✭ 81 (+268.18%)
Mutual labels:  text
py midicsv
A Python port and library-fication of the midicsv tool by John Walker. If you need to convert MIDI files to human-readable text files and back, this is the library for you.
Stars: ✭ 55 (+150%)
Mutual labels:  text
justified
Wrap, align and justify the words in a string.
Stars: ✭ 30 (+36.36%)
Mutual labels:  text
jupyterlab plotly
This repository is deprecated. The extension has moved to https://github.com/jupyterlab/jupyter-renderers
Stars: ✭ 16 (-27.27%)
Mutual labels:  notebook
go-notebook
Go-Notebook is inspired by Jupyter Project (link) in order to document Golang code.
Stars: ✭ 33 (+50%)
Mutual labels:  notebook
tools-generation-detection-synthetic-content
Compilation of the state of the art of tools, articles, forums and links of interest to generate and detect any type of synthetic content using deep learning.
Stars: ✭ 107 (+386.36%)
Mutual labels:  text
Machine-Learning-Notebooks
15+ Machine/Deep Learning Projects in Ipython Notebooks
Stars: ✭ 66 (+200%)
Mutual labels:  notebook

text-rnn-tensorflow

Tutorial: Multi-layer Recurrent Neural Networks (LSTM) for text models in Python using TensorFlow.

Before going through this tutorial, I suggest to read the very very good blog note from Andrej Karpathy: http://karpathy.github.io/2015/05/21/rnn-effectiveness/

This project takes also a lot from : https://github.com/hunkim/word-rnn-tensorflow by hunkim. (honestly: almost every thing, this word-rnn-tensorflow project is great)

Requirements

Training Tutorial

The project has a Train_RNN.ipynb notebook. Open it using Jupyter.

It describes the following activities:

  • Load and prepare the data:
    • Load Data
    • Vocabulary creation
    • Tensor creation
    • Batches creation
  • Model set-up
  • Model training:
    • train the model
    • save it to local file

Text generation Tutorial

The project has a Generate_text_ipynb notebook. Open it using Jupyter.

It describes the following activities:

  • Retrieve saved model
  • Predict text

simple_model.py

This python script embeds the definition of a class for the model:

  • in order to train one RNN,
  • and to use a saved RNN.

It's a 'simplification' of the word-rnn-tensorflow project, with a lot of comments inside to describe its steps.

To Go further

Model training and text generation is done through notebooks in this tutorial. If you want to use a more strengthened code, a more optimized code, embedding more features, I suggest to use the word-rnn-tensorflow project

additional notes

The project comes with two types of input:

  • data/tinyshakespeare/input.txt:
    • a small condensate of Shakespeare books
  • data/Artistes_et_Phalanges-David_campion/input.txt:
    • The complete text of a french fantasy book "Artistes et Phalanges", by David Campion
    • This file book is under the following licence: Licence Creative Commons CC BY-NC-ND
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].