Skip to main content

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 that used be used to calculate the probability of the next word.
  • specify an additional file to use for text input.

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 have full-stops to mark the ends of sentences, trying putting each 'sentence' on a newline, so the parser doesn't read your entire file as one big sentence.

you’ll want to edit the output too. it is very much supposed to be a kind of raw material for further human editing, rather than print-ready bosh.

for further tips on basic output, see https://github.com/jsvine/markovify#basic-usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkv-this-0.1.5.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

mkv_this-0.1.5-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file mkv-this-0.1.5.tar.gz.

File metadata

  • Download URL: mkv-this-0.1.5.tar.gz
  • Upload date:
  • Size: 3.5 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

Hashes for mkv-this-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3e53670b7837c22a0cadc1deb1e565ec89180685cace007be2dfe954cb6720a7
MD5 63046add4bdc4366e54bfac035c55aa5
BLAKE2b-256 512d96726211a3b8e1086a9c1c1479e010eb4cfab8dd4f4cff6b77b5b6b1ba8e

See more details on using hashes here.

File details

Details for the file mkv_this-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mkv_this-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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

Hashes for mkv_this-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c07c403620e8963b5d2cace6d2dba871d5f0ae691eea619fa19efcd6ea38b800
MD5 21ea5290d5836ea5f55878441153f040
BLAKE2b-256 b4ba95f4d48f2a98a2d910e1174a2b1c59c4e4828201d2dad8035ff66a3ed9d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page