资源算法blocks-char-rnn

blocks-char-rnn

2020-01-16 | |  34 |   0 |   0

char-rnn in Blocks

This code is a python implementation of Torch char-rnnproject using the Blocks framework.

Requirements

  • Install Blocks. Please see thedocumentation for more information.

Usage

  • Set text_file parameter in the config.py file. You can try theinput.txtfile used in the original code.

  • run make_dataset.py to create the Fuel dataset.

  • run train.py file to train a Gated RNN (Cho et al.). 'rnn' and 'lstm' are also supported.

  • run sample.py to sample characters using a trained model.

train.py and sample.py scripts follow most of the parameters from the original char-rnn project.  Please take a look on it to train your own models.


上一篇:char_rnn_karpathy_keras

下一篇:char-rnn

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...