Description Usage Arguments Value See Also
View source: R/preprocessing.R
Convert text to a sequence of words (or tokens).
1 2 3 4 5 6 | text_to_word_sequence(
text,
filters = "!\"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n",
lower = TRUE,
split = " "
)
|
text |
Input text (string). |
filters |
Sequence of characters to filter out such as punctuation. Default includes basic punctuation, tabs, and newlines. |
lower |
Whether to convert the input to lowercase. |
split |
Sentence split marker (string). |
Words (or tokens)
Other text preprocessing:
make_sampling_table()
,
pad_sequences()
,
skipgrams()
,
text_hashing_trick()
,
text_one_hot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.