Spew words using bigram frequencies
Project description
claptrap
I'll stop talking when I'm dead!
Generate random phrases using bigram frequencies. Counts some punctuation as objects when creating bigrams so it includes realistic punctuation.
Useful if you want something maybe humorous to put into text fields other than totally random strings.
import claptrap
phrasegen = claptrap.PhraseGenerator.from_dump(file='dumps/markov-dracula.xz')
for _ in range(10):
print(phrasegen.phrase([70, 80]))
Kicks out:
Hark! Arthur. So that you? Don't want souls? I can fight in terror afoot
Ha, but all night. Me have seen and I wondered at once to keep strict injunction
That it behind us who is better to loathe it, we should get abreast of
Gold piece of one thing? His patients. Harker began to heaven where he
Could speak without getting out. Having seen her and letters: colophon
New courage is paler as she who was some evil that the reading his departure
Such a little before the horses and his seat was silent, however, I have
So strong in the towns or say sadly that the result in kindness I know
From behind us and was concerned about ten o'clock before my child was
Simply saying that the general plan. She turned to the geologic and take
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
claptrap-0.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for claptrap-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545326348bfe678c7887bb57cb32410198b66a91a124d272d6fbc2af8b07cdbe |
|
MD5 | be42519ae35b450d78ad508b891ae80c |
|
BLAKE2b-256 | 220dff69183da4c3badda68b9ff8ed55b2b64effc2e00141827e748d32fb4d89 |