A deep-learning model that writes the second line of a Chinese couplet from the first line you give it.
Your data
Stays on your device
Coding needed
Developers only
Cost
Free
Computer
Works best on a powerful computer or one with a graphics card (GPU)
On your deviceData stays with you
Drafted with AINew this weekMostly for developers
What it does
Chinese couplets (对联) are pairs of lines that match each other in length, rhythm and meaning. This project trains an AI model to write a matching second line when you give it a first line.
It uses a seq2seq model, a type of AI that turns one sequence of words into another, built with the TensorFlow toolkit. You train the model on a collection of existing couplets, which the maker provides as a separate dataset.
Once trained, the model can run as a small web service that answers with couplets. The maker says training took about four days on a gaming graphics card. The README also links to an online demo.
Who it's for
People curious about AI and Chinese poetry who are comfortable running Python code and training a model themselves.
Can I use it without coding?
Developers only. You need to edit Python settings files, train the model and start a server yourself. New to this? Start here.
Can I run it?
Cost
FreeNothing to pay or sign up for.
Computer
Works best on a powerful computer or one with a graphics card (GPU)
Privacy
Runs on your own device: your data stays with you
API key
Not needed
Try it
Download the couplet dataset from the maker's companion dataset project
Set the file locations in the training script and train the model
Set the model location in the server script and start the web service to try couplets
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?
Before you install
Only download from the official GitHub page. Copies with similar names exist for many popular projects.
Plain-AyI is an independent guide and doesn't host or review the software it lists. Please check each project's official page before installing.
License (AGPL-3.0): Free to use; if you run a changed version as an online service, you must share your source code.