Skip to main content

Hidden Markov Machine (HMM)

This module provides the function write(prompt, length, bias, training) which adds length words to the end of the prompt. If the bias is set to 0 (the minimum), there will be no bias, and the closer it gets to 1 (the maximum) nouns in the prompt are more likely to be chosen. If a bias is not provided, the default is 0. The training variable is optional, it defaults to a file of writing I've done in the past, but can be set to a different file. If you choose to change the training, change it to a txt file hosted online, e.g. "https://raw.githubusercontent.com/TobyCK/markov-chain/master/Training/dataset2.txt". Below is an example of how to use the module:

from hmm_write import hmm
hmm.write("The quick brown fox jumps over the", 50, 0.3)

Metadata

Release files for hmm-write 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hmm-write 0.3.4
File Size Uploaded Provenance Actions
hmm_write-0.3.4.tar.gz 3.0 kB Without provenance Details for hmm_write-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hmm-write 0.3.4
File Interpreter ABI Platform Actions
hmm_write-0.3.4-py3-none-any.whl Python 3 none any Details for hmm_write-0.3.4-py3-none-any.whl

Total release size: 6.3 kB

Release files / hmm_write-0.3.4.tar.gz

Download URL hmm_write-0.3.4.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1814d95e6483c87e7c9aa1204451d4b3838908f6692e731f13cddf11043e8fb7
BLAKE2b-256 checksum
How to use checksums
20cd85fd3d7dbd80da1dbfc7b3d114b2ee48f68b58fc9f3761939bd335b5df54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / hmm_write-0.3.4-py3-none-any.whl

Download URL hmm_write-0.3.4-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49ad3afb8b1815458567b93ee71bcc921a76aba58883c4338bcd6ddbccb2a229
BLAKE2b-256 checksum
How to use checksums
6af8d519e61124989dd0da347e8d5831a497d4f427c6830ad58c928c30bf0599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for hmm-write 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page