Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1.
//ソースをクローン
git clone https://github.com/sherjilozair/char-rnn-tensorflow
//作業フォルダへ移動
cd char-rnn-tensorflow
2.
//ディレクトリを作成
mkdir philosophy
//作成したディレクトリにinput.txtを配置
char-rnn-tensorflow/data/philosophy/input.xtx
3.
//train.pyのを書き換え
//書き換え前
parser.add_argument('--data_dir', type=str, default='data/tinyshakespeare',
help='data directory containing input.txt')
//書き換え後
parser.add_argument('--data_dir', type=str, default='data/philosophy',
help='data directory containing input.txt')
//学習開始
python train.py
4.
//文章生成
python sample.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.