Skip to content

Instantly share code, notes, and snippets.

@takuya-andou
Created June 19, 2016 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya-andou/edebc525b682866279f8469cd5d29420 to your computer and use it in GitHub Desktop.
Save takuya-andou/edebc525b682866279f8469cd5d29420 to your computer and use it in GitHub Desktop.
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