| markovify_text | R Documentation | 
Produces text output from a markov model based pn user specified parameters
markovify_text(
  markov_model,
  maximum_sentence_length = NULL,
  start_words = NULL,
  output_column_name = "columnName",
  count = 50,
  tries = 100,
  only_distinct = TRUE,
  return_message = TRUE
)
| markov_model | a markov model produced from  | 
| maximum_sentence_length | the maximum length of the sentence
if  | 
| start_words | a markov model produced with a list of start word terms | 
| output_column_name | name of the | 
| count | count of the number of sentences, default  | 
| tries | count of the number of tries to produce a coherent sentence | 
| only_distinct | if  | 
| return_message | if  | 
a tibble
## 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 = 2L,
max_overlap_total = 15,
max_overlap_ratio = .8)
markovify_text(
markov_model = markov_model,
count = 100,
maximum_sentence_length = 1500L,
output_column_name = 'linnemanBotText',
tries = 100,
only_distinct = TRUE,
return_message = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.