markovify icon indicating copy to clipboard operation
markovify copied to clipboard

A simple, extensible Markov chain generator.

Results 16 markovify issues
Sort by recently updated
recently updated
newest added

Currently, one cannot just search for "order" to figure out whether markovify supports higher-order Markov chains or not. This PR is supposed to make this easier to find out.

I am using pyscript and would really like to have an option to import this.

heya @jsvine. i'm writing a quite simple code with markovify, and i keep running into couple of issues. 1) m_s_w_s doesn't see the sentences with words when they're clearly there,...

How can I condition the text generation given a previous input. Example: After creating the model, I pass a 'seed' (a small string) so that the generated sentence is a...

I was using markovify for a non-text use case and found the greedy policy helpful, so I added this method. Feel free to add, no worries if not!

I have a relatively small corpus to work with and I often get the generated sentences very similar to the corpus ones. Would it be possible to add a way...

With any number of tries or any sentecnce length Markovify always outputs "None" when I use text file in russian as corpus. Even with a basic example from readme. for...

FYI, as #174 stimulated my curiosity, one of the two test files lacks [BOM bytes](https://en.wikipedia.org/wiki/Byte_order_mark): ```console $ hd -n4 test/texts/sherlock.txt 00000000 ef bb bf 50 |...P| 00000004 $ hd -n4...

I'm trying to build a Slack chatbot using bits and pieces of code I've found lying around on the internet. One of them included markovify and it's just about the...

--------------------------------------------------------------------------- KeyError Traceback (most recent call last) in () 25 out = markov_text_model.make_sentence_with_start(' '.join(TXT[10:12]), strict=True, min_chars=minimum_number_of_characters_to_generate, 26 tries=number_of_cycles_to_try_to_generate_desired_result, ---> 27 max_overlap_ratio=overlap_ratio) 28 else: 29 out = markov_text_model.make_sentence() 4 frames /content/tegridy-tools/tegridy-tools/markovify.py...