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
- post to silence mailing list that inspired this code
- compilation of computer programs used by John Cage
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a93921cfb5f25aa4cc70a00f11dc640851b87faeaee01475aba47256cf0ebc27
|
|
| MD5 |
f6896be8dd3cdadf8c2aaf02f2a8a610
|
|
| BLAKE2b-256 |
e1f4be45e66773bdae1b52a551e877c938b436870b72af6dbfce2763b25590ae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91a1b966fc052a997367d75421735708306aad7652ad28e9e373b853c7fad578
|
|
| MD5 |
8059477fe1f564837fd48fa9cc60c007
|
|
| BLAKE2b-256 |
e544df745cd0e3add3a77cd63518443ab069ddca95fa29389aff1dad5edce60d
|