Learn R Programming

stringb (version 0.1.17)

text_tokenize_words: generic to tokenize text into words

Description

A wrapper to text_tokenize that tokenizes text into words. Since using text_tokenize()'s option non_token might slow things down considerably this one purpose wrapper is a little more clever than the general implementation and hence much faster.

Usage

text_tokenize_words(string, non_token = FALSE)

# S3 method for default text_tokenize_words(string, non_token = FALSE)

Arguments

string

the text to be tokenized

non_token

whether or not token as well as non tokens shall be returned.