make_sentence: Make Sentence

Description Usage Arguments Examples

View source: R/make_sentence.R

Description

This function allows you to create a sentence from a body of words loaded by this package

Usage

1
make_sentence(corpus, prompt = "", n = 1)

Arguments

corpus

List. A list output from tweet_gettr.

prompt

String. A string containing a word to start the markov chain.

n

Integer. The length of the sequence of words we want to match when generating a sentence.

Examples

1
make_sentence(trump_tweets, prompt = "I")

serrat839/package documentation built on May 29, 2020, 10:54 a.m.