ia-markov

A Markov model trained on Internet Archive text files.


Keywords
markov, text, internetarchive, model, nlp, corpus, markov-chain, markov-model, markov-text, text-generation, text-generator
License
BSD-3-Clause
Install
pip install ia-markov==0.3.1

Documentation

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