mrqianjinsi / poetry_analyzer Goto Github PK
View Code? Open in Web Editor NEW诗歌分析程序
诗歌分析程序
你好,前进四先生。最近在做知识图谱的研究,然后突然想到了你的文章。我正好想到一个主意,如果根据 CBDB 的数据和全唐诗,可以用什么样的模型去自动推理有趣的规则。
我先试着把 CBDB 的人名数据导入进 wikidata,大概做了 90 万次编辑,然而还有更多关联数据需要导入。这就是我这周做的事。不过有了这想法,就让我先在这里抛砖引玉了。
运行第一个程序word_level_analyzer.py
时,报下面的错误,设置encoding='gb18030'
后就报gb18030
编码错误。求解该编解码错误
E:\github\poetry_analyzer-master>python word_level_analyzer.py
D:\Anaconda3Work\lib\site-packages\gensim\utils.py:855: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Model loaded succeed
Traceback (most recent call last):
File "word_level_analyzer.py", line 164, in <module>
main()
File "word_level_analyzer.py", line 157, in main
char_counter, author_counter, genre_counter = cut_qts_to_words(args.qts_path, args.words_path)
File "word_level_analyzer.py", line 33, in cut_qts_to_words
for line in f:
UnicodeDecodeError: 'gb18030' codec can't decode byte 0x96 in position 18: illegal multibyte sequence
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.