A text-generating Markov chain library
Project description
This library is nothing more and nothing less than a simple Markov chain text generator.
>>> from markmywords import Markov
>>> with open('declaration.txt', 'r') as f:
... text = f.read()
>>> m = Markov(text, degree=2)
>>> m.generate(max_words=13)
"petitioned for redress in the meantime exposed to all the dangers of invasion"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markmywords-0.2.tar.gz
(2.0 kB
view details)
File details
Details for the file markmywords-0.2.tar.gz.
File metadata
- Download URL: markmywords-0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1d7bfd9aa6c47eda8c476991ba2ff30f98bad97f82c31fd8d2db876fe569378
|
|
| MD5 |
27ecd8f4bbfc274437f73370df769f21
|
|
| BLAKE2b-256 |
35136298ed204dfe61ae435e6ba667b0e0f8db5efa3257a3abc4a7335b4b8f5b
|