Skip to content

billycyy/chinese_song_generation

Repository files navigation

Chinese song generation

Using seq2seq with attention to generate chinese song lyrics!

Main code is from here Chinese tokenizer is jieba

Training

# edit seq2seq.ini file to set 
#		mode = train
# put lyrics into train.enc, train.dec, (test.enc, test.dec)
python execute.py
# or use custom ini file
#		python execute.py my_custom_conf.ini

Testing

# edit seq2seq.ini file to set 
#		mode = test
python execute.py

Serve

# configuration : seq2seq_serve.ini
# move work_dir to ui folder. modify checkpoint to be the checkpoint you want
python ui/app.py
# wait until this message shows up
#		"Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)"
# open up the address in browser, chat with the bot

Output examples

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published