All Projects → TobiasLee → Chinese-Hip-pop-Generation

TobiasLee / Chinese-Hip-pop-Generation

Licence: MIT license
Generate Chinese hip-pop lyrics using GAN

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Chinese-Hip-pop-Generation

porn-description-generator
Generates new porn descriptions based on an edited dataset of xhamster video descriptions uploaded between 2007-2016.
Stars: ✭ 40 (-66.94%)
Mutual labels:  text-generation
Conditional-SeqGAN-Tensorflow
Conditional Sequence Generative Adversarial Network trained with policy gradient, Implementation in Tensorflow
Stars: ✭ 47 (-61.16%)
Mutual labels:  seqgan
gpt-j-api
API for the GPT-J language model 🦜. Including a FastAPI backend and a streamlit frontend
Stars: ✭ 248 (+104.96%)
Mutual labels:  text-generation
gap-text2sql
GAP-text2SQL: Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training
Stars: ✭ 83 (-31.4%)
Mutual labels:  text-generation
text-generator
Golang text generator for generate SEO texts
Stars: ✭ 18 (-85.12%)
Mutual labels:  text-generation
Gumbel-CRF
Implementation of NeurIPS 20 paper: Latent Template Induction with Gumbel-CRFs
Stars: ✭ 51 (-57.85%)
Mutual labels:  text-generation
abc
SeqGAN but with more bells and whistles
Stars: ✭ 25 (-79.34%)
Mutual labels:  seqgan
factedit
🧐 Code & Data for Fact-based Text Editing (Iso et al; ACL 2020)
Stars: ✭ 16 (-86.78%)
Mutual labels:  text-generation
Keras-Generating-Sentences-from-a-Continuous-Space
Text Variational Autoencoder inspired by the paper 'Generating Sentences from a Continuous Space' Bowman et al. https://arxiv.org/abs/1511.06349
Stars: ✭ 32 (-73.55%)
Mutual labels:  text-generation
Text-Generate-RNN
中国古诗生成(文本生成)
Stars: ✭ 106 (-12.4%)
Mutual labels:  text-generation
hangul ipsum
한글 버전의 lorem ipsum 생성기
Stars: ✭ 17 (-85.95%)
Mutual labels:  text-generation
Transformer-QG-on-SQuAD
Implement Question Generator with SOTA pre-trained Language Models (RoBERTa, BERT, GPT, BART, T5, etc.)
Stars: ✭ 28 (-76.86%)
Mutual labels:  text-generation
gpt-neo-fine-tuning-example
Fine-Tune EleutherAI GPT-Neo And GPT-J-6B To Generate Netflix Movie Descriptions Using Hugginface And DeepSpeed
Stars: ✭ 157 (+29.75%)
Mutual labels:  text-generation
text-wgan
Improved Training of Wasserstein GANs for Text Generation
Stars: ✭ 20 (-83.47%)
Mutual labels:  text-generation
RapLyrics-Back
Model training, custom generative function and training for raplyrics.eu - A rap music lyrics generation project
Stars: ✭ 14 (-88.43%)
Mutual labels:  text-generation
pistoBot
Create an AI that chats like you
Stars: ✭ 121 (+0%)
Mutual labels:  text-generation
Cancerify
Turn an innocent text into torturous hell
Stars: ✭ 44 (-63.64%)
Mutual labels:  text-generation
char-rnn-text-generation
Character Embeddings Recurrent Neural Network Text Generation Models
Stars: ✭ 64 (-47.11%)
Mutual labels:  text-generation
Deep-NLP-Resources
Curated list of all NLP Resources
Stars: ✭ 65 (-46.28%)
Mutual labels:  text-generation
Irl gen
This is implementation of the paper 'Toward Diverse Text Generation with Inverse Reinforcement Learning' https://arxiv.org/abs/1804.11258 IJCAI2018
Stars: ✭ 32 (-73.55%)
Mutual labels:  text-generation

Chinese Hip-pop Generation

2018 DeeCamp 人工智能夏令营项目,使用 GAN 进行中文嘻哈歌词生成。

Project of DeeCamp 2018, generating Chinese hip-pop lyrics using GAN.

Note

因时间仓促,代码写的有些混乱(诸如变量命名 etc.),也可能存在一些错误,欢迎提 PR 共同改进。由于精力有限,不再更新,有问题欢迎提 Issue,我会尽最大努力地提供帮助。

The code is a mess right now, please be careful when using. It is welcome to make a PR if you find some mistakes and raise issues for asking help.

Dataset

训练数据以及押韵表可以从 Google 云下载,也可以可以根据我的博客说明更改数据集

The processed training data and rhyme table can be downloaded from Goolge Drive, the origin lyrics (10, 000 sentence) is also provided.

Requirements

  • Python3
  • TensorFlow >= 1.7.0
  • Jieba

Model

模型基于 SeqGAN,进行一些修改:

Model

Training and Evaluate

下载数据集之后将 data 放在项目目录下,运行

python3 seq_gan.py

完成训练之后,使用运行 translate.py 查看生成的测试集结果,或者使用 generate_paragraph.py 测试生成多句效果。

Note: CPU version tensorflow may meet problem when doing inference due to tf.multinomial. You can change the sampling function in generator.py

Results

下面是一些比较好的结果,Input 为模型输入(均为测试集中的句子,未参与训练),Result 为模型生成结果,Origin 为原歌词。

Example 1:

Input:

不是乐理专修

Result:

做点儿曲式研究 我们的力量来自宇宙 自己的节奏

Origin:

所有听的观众打破他们传统 进到环球 继续让你感受

Example 2:

Input:

音响里换首咏叹听

Result:

冷酷如透明的冰 反抗的标语文艺复兴 你唱的听不清

Origin:

音响里换首咏叹听 技巧 强你 从来不需要靠垄断赢

Example 3:

Input:

自己就带上了有色眼镜

Result:

金钱摧毁多少事情 瓦解你的中枢神经

Origin: 我只想把世界分的更清 却发现自己却模糊了心

更多结果可以在 good_cases.txt 中查看

Acknowledgement

This project is a collaboration fruit with the following great team members:

lihao2333

llluckygirlrhy

Linfeng Zhang

FrankLiu

liuaiting

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].