accraze / python-ia-markov

Train Markov models on Internet Archive text files.

Home Page:https://pypi.org/project/ia-markov/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

docs Documentation Status
tests
Travis-CI Build Status Requirements Status
Coverage Status Coverage Status
package PyPI Package latest release PyPI Wheel Supported versions Supported implementations

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

About

Train Markov models on Internet Archive text files.

https://pypi.org/project/ia-markov/

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%