text_to_word_sequence: Split a sentence into a list of words.

View source: R/preprocessing.R

text_to_word_sequenceR Documentation

Split a sentence into a list of words.

Description

Split a sentence into a list of words.

Usage

text_to_word_sequence(text,
  filters = "!\"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n", lower = TRUE,
  split = " ")

Arguments

text

a string

filters

vector (or concatenation) of characters to filter out, such as punctuation.

lower

boolean. Whether to set the text to lowercase.

split

string. Separator for word splitting.

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org

References

Chollet, Francois. 2015. Keras: Deep Learning library for Theano and TensorFlow.

See Also

Other preprocessing: Tokenizer, expand_dims, img_to_array, load_img, one_hot, pad_sequences


kerasR documentation built on Aug. 17, 2022, 5:06 p.m.