Introduction - If you have any usage issues, please Google them yourself
# Char-RNN-PyTorch
Use the character level RNN for text generation, using the PyTorch framework. [Gluon
## Requirements
- PyTorch 0.2
- numpy
## Basic Usage
If you want to train the network, use the following code
```bash
Python main.py \
--state train \
TXT text --txt'./data/poetry.txt'\ # for training
--batch 128, batch_size #
--epoch 1000 \
The length of the sequence --len 100 \ # input RNN
--max_vocab 5000, # maximum number of characters
--embed 512 \ # word vector dimension
The output dimension --hidden 512 \ # network
--n_layer 2 # \ RNN layers
--dropout 0.5
.
If you want to use a trained network for text generation, use the following code
```bash
Python main.py \
--state Eval \
I \ '--begin' # generated text, can be a character, can also be a paragraph
--pred_len 100, # want to generate text length
--checkpoint'./checkpoint/model_100.pth'# reading training model position
.