lime (version 0.5.3)

default_tokenize: Default function to tokenize

Description

This tokenizer uses stringi::stri_split_boundaries() to tokenize a character vector. To be used with [explain.character()`.

Usage

default_tokenize(text)

Value

a character vector.

Arguments

text

text to tokenize as a character vector

Examples

Run this code
data('train_sentences')
default_tokenize(train_sentences$text[1])

Run the code above in your browser using DataLab