Skip to content
No description, website, or topics provided.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
fastText @ a0fa139

Applying CNNs to Sentence Generation

This project uses a DenseNet for character and word level language modelling. Models can be toggled with the mode setting set to 'char' or 'word' and should be created in a models/ directory. Data should be loaded into the data/ folder.

See for details on the training and testing loops.

See for details on the model architectures.

See for a scratch pad for code testing.

  1. Run ./ to download the 10GB files required for fasttext embeddings.
  2. Then run python with paths to your data files setup.

For help, look at the argument parser to see what is required and what sensible defaults are. This work was tested on the English Penn Treebank (download here: and the 1 billion word dataset (download here: You should put these files into the data/ folder to use them

You can’t perform that action at this time.