Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/accraze/python-ia-markov
Train Markov models on Internet Archive text files.
https://github.com/accraze/python-ia-markov
markov-chain markov-model markov-text nlp text-generation text-generator
Last synced: 23 days ago
JSON representation
Train Markov models on Internet Archive text files.
- Host: GitHub
- URL: https://github.com/accraze/python-ia-markov
- Owner: accraze
- License: bsd-2-clause
- Created: 2016-11-28T00:19:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T01:13:42.000Z (over 5 years ago)
- Last Synced: 2024-10-11T11:53:28.683Z (about 1 month ago)
- Topics: markov-chain, markov-model, markov-text, nlp, text-generation, text-generator
- Language: Python
- Homepage: https://pypi.org/project/ia-markov/
- Size: 63.5 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
========
Overview
========.. start-badges
.. list-table::
:stub-columns: 1* - docs
- |docs|
* - tests
- | |travis| |requires|
| |coveralls| |codecov|
* - package
- |version| |wheel| |supported-versions| |supported-implementations|.. |docs| image:: https://readthedocs.org/projects/python-ia-markov/badge/?style=flat
:target: https://readthedocs.org/projects/python-ia-markov
:alt: Documentation Status.. |travis| image:: https://travis-ci.org/accraze/python-ia-markov.svg?branch=master
:alt: Travis-CI Build Status
:target: https://travis-ci.org/accraze/python-ia-markov.. |requires| image:: https://requires.io/github/accraze/python-ia-markov/requirements.svg?branch=master
:alt: Requirements Status
:target: https://requires.io/github/accraze/python-ia-markov/requirements/?branch=master.. |coveralls| image:: https://coveralls.io/repos/accraze/python-ia-markov/badge.svg?branch=master&service=github
:alt: Coverage Status
:target: https://coveralls.io/r/accraze/python-ia-markov.. |codecov| image:: https://codecov.io/github/accraze/python-ia-markov/coverage.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/accraze/python-ia-markov.. |version| image:: https://img.shields.io/pypi/v/ia-markov.svg?style=flat
:alt: PyPI Package latest release
:target: https://pypi.python.org/pypi/ia-markov.. |downloads| image:: https://img.shields.io/pypi/dm/ia-markov.svg?style=flat
:alt: PyPI Package monthly downloads
:target: https://pypi.python.org/pypi/ia-markov.. |wheel| image:: https://img.shields.io/pypi/wheel/ia-markov.svg?style=flat
:alt: PyPI Wheel
:target: https://pypi.python.org/pypi/ia-markov.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/ia-markov.svg?style=flat
:alt: Supported versions
:target: https://pypi.python.org/pypi/ia-markov.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/ia-markov.svg?style=flat
:alt: Supported implementations
:target: https://pypi.python.org/pypi/ia-markov.. end-badges
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:
.. list-table::
:widths: 10 90
:stub-columns: 1- - Windows
- ::set PYTEST_ADDOPTS=--cov-append
tox- - Other
- ::PYTEST_ADDOPTS=--cov-append tox