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 Distributions
File details
Details for the file mkv-this-0.1.10.tar.gz
.
File metadata
- Download URL: mkv-this-0.1.10.tar.gz
- Upload date:
- Size: 3.8 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 | e30221210123ccf122f662bcfc1a974ebaa63bd393cee7bd4df22d251c7f5335 |
|
MD5 | cdaecf7df682c482c8649c4dc82ca0a0 |
|
BLAKE2b-256 | 4753d161693ae2ead6b4ad299a6c11ca19b19f088832637397600f94ebc080fa |
File details
Details for the file mkv_this-0.1.10-py3.7.egg
.
File metadata
- Download URL: mkv_this-0.1.10-py3.7.egg
- Upload date:
- Size: 10.3 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 | caf89fcd2ca60914dfd4b7a808b30942b928ff04cca432f2cac1e2ebdcd3eccb |
|
MD5 | 0344b87c749599c04fff4f7ec3d3e958 |
|
BLAKE2b-256 | 8e3c1722fa26d373c9fe2efb432153094669e31f055342a74f5621cad378a18b |
File details
Details for the file mkv_this-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: mkv_this-0.1.10-py3-none-any.whl
- Upload date:
- Size: 18.4 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 | b2921adf879aa9c999c8563ff1e45c05d92730aa6f8aed793d0ef76132f230d8 |
|
MD5 | 5e18207081b573c89eba16d175179af7 |
|
BLAKE2b-256 | 9972305c03116987fb72fd5580c3cade01ed24175d7ab59f3feea86d320f9a66 |