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)
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)
| File | Size | Uploaded | |
|---|---|---|---|
| hmm_write-0.3.4.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hmm_write-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
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
|