Skip to main content

An implementation of the mesostic generation algorithm Andrew Culver developed for John Cage.

Project description

PyMesomake

PyMesomake is a Python 3 implementation of the mesostic generation algorithm Andrew Culver developed for John Cage.

Installation

Unless you've previously used Python's Natural Language Tool Kit you'll see this error on your first run of PyMesomake.

LookupError: 
**********************************************************************
  Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('punkt')

  Attempted to load tokenizers/punkt/PY3/english.pickle

  Searched in:
    - '/Users/erictheise/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/share/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
    - ''
**********************************************************************

You can download that component with:

$ python -m nltk.downloader punkt
[nltk_data] Downloading package punkt to
[nltk_data]     /Users/erictheise/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
$

Usage

python pymesomake --sourcefile='data/genesis.txt' --mesostring="these are the times that try men's souls"

Reminder to Maintainer

Publish thusly:

$ python3 setup.py sdist bdist_wheel
$ twine updload dist/*

Acknowledgements & Resources

Andrew Culver

The Holy See

  • source of Genesis text. HTML source subjected to these minimal edits:
    • removal of page navigation elements
    • removal of chapter headings (e.g., "Chapter 6") and line numbering (e.g., "[1:30]")

Marjorie Perloff contextual essays

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

pymesomake-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymesomake-0.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pymesomake-0.2.0.tar.gz.

File metadata

  • Download URL: pymesomake-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for pymesomake-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a93921cfb5f25aa4cc70a00f11dc640851b87faeaee01475aba47256cf0ebc27
MD5 f6896be8dd3cdadf8c2aaf02f2a8a610
BLAKE2b-256 e1f4be45e66773bdae1b52a551e877c938b436870b72af6dbfce2763b25590ae

See more details on using hashes here.

File details

Details for the file pymesomake-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymesomake-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for pymesomake-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91a1b966fc052a997367d75421735708306aad7652ad28e9e373b853c7fad578
MD5 8059477fe1f564837fd48fa9cc60c007
BLAKE2b-256 e544df745cd0e3add3a77cd63518443ab069ddca95fa29389aff1dad5edce60d

See more details on using hashes here.

Supported by

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