tokenize: Tokenize

Description Usage Arguments Value Examples

View source: R/tokenize.R

Description

This function takes a Corpus or vector of documents and returns a list of character vectors of the tokens (words) in each document.

Usage

1

Arguments

x

An object inheriting from Corpus, a list of character vectors, or a character vector.

Value

A list of character vectors of the tokens (words) in each document.

Examples

1
2
docs <- c("What are you doing down there, crashy?", "I'm real good at lying to Lois.")
words <- tokenize(docs)

dtburk/texanaaid documentation built on Nov. 12, 2019, 9:44 p.m.