PyMarkovChain
=============
PyMarkovChain supplies an easy-to-use implementation of a markov chain text generator.
To use it, you can simply do
from pymarkovchain import MarkovChain
# Create an instance of the markov chain, tell it where to load / save its database
mc = MarkovChain("./markov")
# generate the markov chain's language model
mc.generateDatabase("This is a string of Text. It won't generate an interesting database though.")
mc.generateString()
To store its data, PyMarkovChain simply uses pickle to dump all of its data to disk.
This entails that you have to use the same version of python to store the data and to
restore the data, as pickle is one of those things that have changed from python2 to python3.
See also [code on github](https://github.com/MaxWagner/PyMarkovChain) and [PyPI page](http://pypi.python.org/pypi/PyMarkovChain/).
To install, `pip install PyMarkovChain`

weixin_38743481
- 粉丝: 702
最新资源
- 互联网数据中心竞争策略分析报告.docx
- IP网络流量研究与带宽控制.doc
- ASP-NET-小区物业管理系统的方案设计书与实现39082.doc
- OJCode-ACM资源
- (源码)基于C++编程语言的Radiance汇编器、链接器和模拟器.zip
- 图像处理技术的研究现状和发展趋势.doc
- mumicm_dlut-美赛资源
- 论大数据技术及在通信领域中的运用.docx
- 综合布线课程设计.doc
- weather_system-大创资源
- 计算机信息安全及防范措施.docx
- 厂商运用大数据和物联网的投资选择效用研究.docx
- 单片机ATC多功能电子密码锁设计方案.doc
- 工程项目管理课程思政教学改革与实践.docx
- Ipzrbh单片机交通灯控制大学本科方案设计书.doc
- (源码)基于 Vue 和 Redux 的用户聊天管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


