Skip to main content

Create Markov models trained on Internet Archive text files.

  • Free software: BSD license

Installation

pip install ia-markov

Quick Start

from ia_markov import MarkovModel

m = MarkovModel()
m.train_model('FuturistManifesto')
m.model.make_sentence()
'Courage, audacity, and revolt will be drunk with love and admiration for us.'

Documentation

https://python-ia-markov.readthedocs.io/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.3.1 (2018-10-14)

  • Added tests to sentence_split method - @danhenriquesc

0.3.0 (2018-10-05)

  • Added MarkovModel.make_sentence - @Abelarm

  • Use Spacy instead of NLTK for POS - @ex00

  • Added pipenv for dependency management - @alxwrd

  • Removed breaking coverage combine call in Travis CI build - @accraze

0.2.1 (2018-9-01)

  • Updated NLTK to v3.3

  • Updated markovify to v0.7.1

  • Updated internetarchive to 1.8.1

0.2.0 (2018-7-29)

  • Added ability to set custom hidden state sizes

  • Fix flaky model test

0.1.3 (2018-7-22)

  • EOL Py2.7 and Windows support

  • Fix docs CI build

0.1.2 (2018-7-21)

  • Test mocks when downloading corpus

  • Deprecate Windows/appveyor support

0.1.1 (2018-7-14)

  • Fixed failing flake8 check tests

  • Updated travis CI build config

0.1.0 (2016-11-27)

  • First release on PyPI.

Metadata

Release files for ia-markov 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ia-markov 0.3.1
File Size Uploaded
ia-markov-0.3.1.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ia-markov 0.3.1
File Interpreter ABI Platform
ia_markov-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 25.6 kB

Release files / ia-markov-0.3.1.tar.gz

Download URL ia-markov-0.3.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d195b69848caba2f905aa404a24f1cd6107856c12710e9fcc6f38d043f3b35b
BLAKE2b-256 checksum
How to use checksums
b23f8f897aed36bef6e3f03ac44351f2e1fa78fd08f4cc6135e331f3c771ed17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15

Release files / ia_markov-0.3.1-py2.py3-none-any.whl

Download URL ia_markov-0.3.1-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7810bbeaa4bca4154175f420d3dc11588674eecd28799b529abd1d54cea7849e
BLAKE2b-256 checksum
How to use checksums
ab94bb3eb358ea1be646c4bc6dc1fbc3fc4f0cd2473d1d5ffe971ccd2cac4dca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page