from baidubaike get the corpus
从百度百科爬取中文语料库
采用单个初始界面爬取的词条数比较少,用‘科学’爬到7W+词条,用比较笨的办法,多用几个初始界面,尽量使用与自己项目相关的词汇
更新,采用多进程+多线程方式,增加爬取速度
添加词向量训练语料预处理及模型训练代码
from baidubaike get the corpus
首先感谢您的分享,
在使用过程中,发现了两个可以优化的地方:
1.百度百科有的时候相同词条url会不一样,所以如果用url判定当前网页是否在数据库中,可能不准确,可以改成用提取的title来判断改词条是否在其中
2.拿到网页可以先用title来判断是否在数据库中,这样后续的没必要的操作可以省去时间,能提高很多效率
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.