Created
June 19, 2016 11:41
-
-
Save takuya-andou/edebc525b682866279f8469cd5d29420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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