vocab_tokens: Create Vocab for Tokens

Description Usage Arguments Value Examples

View source: R/cleaning.R

Description

collect all unique tokens in the full set of tokens. Returns a character vector of the unique tokens across all entries.

Usage

1
vocab_tokens(tokens)

Arguments

tokens

a list of tokenized entries

Value

a character vector containing each unique token entry that appears in tokenized document.

Examples

1
vocab_tokens( list( c( 'first', 'entr', 'doc' ), c('second', 'entr', 'doc') ) )

duncankmckinnon/ezRnlp documentation built on Aug. 6, 2020, 1:28 a.m.