generate_markovify_model | R Documentation |
Generate a markov model for a given input text and set of model parameters
generate_markovify_model(
input_text,
markov_state_size = 2,
max_overlap_total = 15,
max_overlap_ratio = 0.7,
tries = 100
)
input_text |
a |
markov_state_size |
markov state to use
|
max_overlap_total |
maximum overlap total
default is |
max_overlap_ratio |
maximum overlap ratio
|
tries |
number over times to try to generate a sentence |
a markov model in Python object form
## Not run:
library(dplyr)
library(markovifyR)
data("linneman_lessons")
df <- linneman_lessons
lessons <-
df %>%
pull(textLesson)
markov_model <-
generate_markovify_model(
input_text = lessons,
markov_state_size = 3L,
max_overlap_total = 15,
max_overlap_ratio = .8
)
markov_model
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.