Skip to content

Tensorflow implementation of Generating Sentences from a Continuous Space

Notifications You must be signed in to change notification settings

yiyang92/vae_for_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Variational Auto-Encoder For Generating Texts

Overview

Tensorflow implementation of Generating Sentences from a Continuous Space.

Usage

Training:

python vae_lstm-lstm.py

Parameters

Parameters can be set directly in Parameters class in vae_lstm-lst.py file. (or specify through command line parameters). You can choose to train on PTB dataset or on Game of Thrones dataset. Parameter debug can be set to true for calling Tensorflow debugger.

  • --dataset PTB or GOT
  • --beam_search use beam search (default=sample from the multinulli distribution)
  • --beam_size beam size, default set to 2

During training generated text will not appear from the first iteration, be patiant and have fun :) I will add pre-trained model later.

Specific requirements

Other files

  • train_rnnlm.py - RNN Word-level language model. Can be trained on PTB or Game of Thrones dataset.

About

Tensorflow implementation of Generating Sentences from a Continuous Space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages