How sunshine6669/chinese-poetry works
This repository is primarily a distributable corpus of Chinese classical literature in JSON, intended for developers building poetry applications. A user can choose a collection and consume its records directly or use PlainDataLoader to extract poem text by dataset name or ID. The repository also contains Song Ci collection-maintenance and export scripts, plus ranking data and a ranking updater. The tree and README establish the corpus’s breadth; relationships involving unsampled dataset configuration and ranking internals are left out where they cannot be verified.
Main entry points: UpdateCi.py Ci updater · main.py Ci exporter · server.js Ranking updater · data_loader.py Plain data loader
Components 15
Poetry corpus
- Tang poetry
全唐诗 - Song Ci
宋词 - Huajianji
五代诗词/huajianji - Nantang lyrics
五代诗词/nantang - Other collections
论语
Dataset access
- Plain data loader
loader/data_loader.py - Loader config
loader/datas.json
Data maintenance
- Ci updater
宋词/UpdateCi.py - Ci database
宋词/ci.db - Ci exporter
宋词/main.py
Ranking data
- Ranking updater
rank/server.js - Ci rankings
rank/ci - Poet rankings
rank/poet
Other components
- Application developer
- Source website
Connections 8
- Application developer → Plain data loader: requests extraction
loader/data_loader.py - Plain data loader → Loader config: loads config
loader/data_loader.py - Ci updater → Source website: fetches pages
宋词/UpdateCi.py - Ci updater → Song Ci: updates JSON
宋词/UpdateCi.py - Ci exporter → Ci database: queries records
宋词/main.py - Ci exporter → Song Ci: writes JSON
宋词/main.py - Ranking updater → Ci rankings: reads and writes
rank/server.js - Ranking updater → Poet rankings: reads and writes
rank/server.js