Learn R Programming

keras (version 0.3.5)

text_to_word_sequence: Convert text to a sequence of word indices.

Description

Convert text to a sequence of word indices.

Usage

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

Arguments

text

Input text (string).

filters

Sequence of characters to filter out.

lower

Whether to convert the input to lowercase.

split

Sentence split marker (string).

Value

integer word indices.

See Also

Other text preprocessing: make_sampling_table, pad_sequences, skipgrams, text_one_hot