Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A package to generate text via Markov chain using sample text

Project Description

MarkovText is a simple Python library for reandomly generating strings of text based on sample text. A Markov chain text generator uses the frequency of words following the current state to generate plausible sentences that hopefully are passable as human text. For example, given the input text “Hello, how are you today? You look well.” and a seed of “you”, there is a 50% chance that the next word is either “look” or “today”. The current state may consist of more than just a single word.

MarkovText is written in Python, and requires numpy (though this may be changed in the future).

Main Features

  • Simple API to generate single or multiple sentences.
  • Ability to add to the sample corpus at any time.

Future Needs

  • Remove dependency on numpy
  • Create sentences that are related to each other

Installation

The recommended way to install this package is with pip

$ pip install MarkovText

Alternatively you can download and instll it manually (not recommended)

$ git clone https://github.com/kwkelly/MarkovText.git
$ cd MarkovText
$ python setup.py
Release History

Release History

This version
History Node

0.1.dev7

History Node

0.1.dev6

History Node

0.1.dev5

History Node

0.1.dev4

History Node

0.1.dev3

History Node

0.1.dev2

History Node

0.1.dev1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
MarkovText-0.1.dev7-py2.py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Mar 17, 2016
MarkovText-0.1.dev7.tar.gz (4.5 kB) Copy SHA256 Checksum SHA256 Source Mar 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting