markovify v0.3.0 Markovify.Text

Markovify.Text uses a markov chain to create a unique sentence.

Summary

Functions

create a sentence from the markov chain making sure that the created sentence does not closely match an original sentence

Creates a markov chain model based on the text provided and function to split the sentence and the size of the key

Functions

make_sentence(chain, config \\ {10, 0.7, 15})
make_sentence({{[{{Tuple.t, String.t}, number}], number, Tuple.t, [String.t], [number], [String.t]}, [String.t]}, {number, number, number}) :: {{{[{{Tuple.t, String.t}, number}], number, Tuple.t, [String.t], [number], [String.t]}, [String.t]}, String.t}

create a sentence from the markov chain making sure that the created sentence does not closely match an original sentence.

model(text, fun \\ &Markovify.Splitter.split_into_sentences/1, text_size \\ 2)
model(String.t, (String.t -> [String.t]), number) :: {{[{{Tuple.t, String.t}, number}], number, Tuple.t, [String.t], [number], [String.t]}, [String.t]}

Creates a markov chain model based on the text provided and function to split the sentence and the size of the key.