Giter VIP home page Giter VIP logo

generate-lyrics-using-pytorch's Introduction

generate-lyrics-using-PyTorch (神经网络生成歌词)

use RNN to generate chinese lyrics

使用循环神经网络实现了歌词的生成,RNN采用了GRU来实现

Environment (运行环境)

Linux
Python3.6
Pytorch

Example

input> 情人
length> 120
gen> 情人的飞翔
如果我遇见世界的梦想
那为了永远
永远不会看不到
如果你看我的幸福
你的温柔像羽毛
巷口上的画面
一天看你看清楚的名字就像日历上一件
没有你可以爱你的微笑
洋溢幸福的味道
还原谅了我的情人节
你是我唯一的爱情
只有这生变我的爱

Recommend reading

usage

  • project structure
|- project
    |- data
    |- runtime
    |- config.py        
    |- dataset.py       
    |- model.py
    |- utils.py
    |- train.py         
    |- test.py
  • adjust parameters
config.py is the configuration file , you can adjust parameters in the file
  • train model
python3 train.py
  • evaluate model
python3 test.py

实现过程请阅读我的博客

我的CSDN博客

问题反馈

欢迎和我交流!共同学习!

  • 邮件(lxm_0828#163.com, 把#换成@)
  • QQ: 929325776
  • weibo: @捏明

感激

感谢以下的项目,排名不分先后

关于作者

学生一枚,就读于山大(shanxi university)CS专业
对deep learning(深度学习), NLP(自然语言处理),NLU(自然语言理解),Big Data(大数据)有狂热的学习欲望
精通WEB开发

generate-lyrics-using-pytorch's People

Contributors

seanlee97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.