markovify user-provided text and output the results to a text file.
Project description
mkv-this
mkv-this is a little script that uses the markovify
python module to output a bunch of bot sentences based on a bank of text that you feed it. the results are saved to a text file of your choosing. if you run it again on the same output file, the new results are appended after the old ones.
it was written by a total novice, so you probably shouldn’t download it. i only learned about argparser yesterday, and pypi.org today, no matter what day it is.
install with pip:
you can install it with pip, the python package manager.
python3 -m pip install mkv-this
you need python3, and markovify is a dependency, but it should install with mkv-this.
options:
the script implements a few of the basic markovify
options, so you can:
- specify a maximum sentence length
- specify how many sentences to output
- specify state size, i.e. the number of preceeding words to be used in calculating the probability of the next word.
- specify an additional file to use for text input. for the moment you can add only one.
run mkv-this -h
to see how to use these options.
for best results:
feed mkv-this
large-ish amounts of well punctuated text. it works best if you bulk replace/remove as much mess as possible (URLs, metadata, stars, bullets, etc.), unless you want mashed versions of those things in your output.
if your input text doesn’t use full-stops to mark the ends of sentences, try putting each 'sentence' on a newline, so the parser doesn't read your entire file as one big sentence and output nothing.
you’ll want to edit the output too. it is very much supposed to be a kind of raw material for human editing, rather than print-ready bosh, although many bots are happily publishing such output directly.
for further tips on basic output, see https://github.com/jsvine/markovify#basic-usage.
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
Built Distribution
File details
Details for the file mkv-this-0.1.6.tar.gz
.
File metadata
- Download URL: mkv-this-0.1.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f618e0d7b5fc2a0435c83dfec1a794294cc7f62e03a1286ead91736cedb95df |
|
MD5 | a8cfd0087f6856fb38761014e61a8744 |
|
BLAKE2b-256 | b8e9dcc8e5367a048b1efe5eb62c4bcd16e10731a9a6b4c676aa3730480dee32 |
File details
Details for the file mkv_this-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: mkv_this-0.1.6-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8634dd5e268f3c4438a062b72bca0793bf44a079fd495e432b5b45f85c4e3ac |
|
MD5 | bb94d10cb9131ccc5727196579f33a44 |
|
BLAKE2b-256 | b6e4f00a02b5d463f9ef7ec9631475e45cb904980e90cc997dfba8442d6c3dc7 |