gutenberg: Gutenberg

Description Usage Arguments Examples

Description

Small selection of texts from the Project Gutenberg electronic text archive.

Usage

1
2
3
4
5
6
7

Arguments

to_r

Whether to return results in R tidy format.

file

A Gutenberg file as returned by gutenberg_files.

Examples

1
2
3
4
5
6
7
## Not run: 
files <- gutenberg_files(to_r = TRUE)
words <- gutenberg_words(sample(files, 1)) # get random text
text <- nltk_text(words) # convert
text$concordance("surprize")

## End(Not run)

news-r/nltk documentation built on Nov. 4, 2019, 9:40 p.m.