Skip to content

Character level prediction with an RNN based on learning from a text corpus

License

Notifications You must be signed in to change notification settings

stante/character-prediction-rnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

character-prediction-rnn

Installation

The easiest way to get the provided code running is by creating a python environment based on the provided environment.yml file.

$ conda env create -f environment.yml

This creates a conda environment called neural-style-transfer, which shall be activated prior to use of the command line tool.

$ conda activate character-prediction-rnn

If the conda environment already exists, it can be activated with the following command.

$ conda env update -f environment.yml

Usage

There are two command line application. One is for learning from a text corpus and saving the model to a file (learn-text) and the other one is for reading the learned model and creating text predictions (predict-text).

Usage: learn-text.py [OPTIONS] TEXT_FILE WRITE_MODEL

Options:
  --epochs INTEGER
  --help            Show this message and exit.
Usage: predict-text.py [OPTIONS] READ_MODEL

Options:
  --n INTEGER
  --help       Show this message and exit.

Examples

License

character-prediction-rnn is Copyright © 2019 Alexander Stante. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

Character level prediction with an RNN based on learning from a text corpus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages