chinese-poetry [古诗] 简体中文版本, 宋词在主仓库就是简体无须转换.
git submodule update --init
pip install -r requirements.txt
python trans.py
chinese-poetry [古诗] 简体中文版本
When I run python trans.py
(windows 10, python 3.7.3), I got this error:
D:\github\chinese-poetry-zhCN>python trans.py
Traceback (most recent call last):
File "trans.py", line 31, in
list(map(trans, os.listdir(POETRY_DIRECTORY)))
File "trans.py", line 16, in trans
raw = open(file_path, 'r').read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x96 in position 27: illegal multibyte sequence
My windows 10 is in English.
例如:poet.song.247000.json中
"author": "艾性夫",
"paragraphs": [
"锦袜生尘脱红玉,琼蟾夜抱金娥哭。",
"芙蓉露瘦寒花钿,𫛛鹊楼空冷银烛。",
"轻鸾小凤横紫箫,彩云密漾青霞绡。",
"桂心沁入锁子骨,蕊宫贝阙天都遥。",
"玉床梦断心欲死,独抱秋衾咽香髓。",
"方瞳白羽青简书,驾月骑风渡瑶水。",
"琼楼碧户翠雾香,紫兰结佩红薇囊。",
"云车仙子不可识,芳卿寄谢真荒唐。",
"蔗浆不饮啼寒泪,不悟齐人少翁诡。",
"安得天上蓬莱宫,却着人间马嵬鬼。"
],
"title": "临邛道士招魂歌"
如题,一开始以为是python3下运行,耽误了一会时间
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.