Skip to content

Instantly share code, notes, and snippets.

@abresler
Last active September 19, 2017 09:04
Show Gist options
  • Save abresler/1b9be51d9ad2ad7f55f2bef6f64b56d4 to your computer and use it in GitHub Desktop.
Save abresler/1b9be51d9ad2ad7f55f2bef6f64b56d4 to your computer and use it in GitHub Desktop.
devtools::install_github("abresler/markovifyR")
library(dplyr)
library(markovifyR)
df_yc <- fundManageR::get_data_ycombinator_alumni()
companies <- df_yc %>% pull(descriptionCompany)
mk_yc <-
generate_markovify_model(
input_text = companies,
markov_state_size = 3L,
max_overlap_total = 15,
max_overlap_ratio = .8
)
mk_yc %>%
markovifyR::markovify_text(maximum_sentence_length = NULL, output_column_name = 'fakeCompanyDescription',
count = 50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment