Nothing
Code
rec %>% step_tokenize(text, token = "wrong") %>% prep()
Condition
Error in `step_tokenize()`:
Caused by error in `prep()`:
! token should be one of the supported: characters, character_shingle, lines, ngrams, paragraphs, ptb, regex, sentences, skip_ngrams, words, or word_stems
Code
rec %>% step_tokenize(text, engine = "fake") %>% prep()
Condition
Error in `step_tokenize()`:
Caused by error in `prep()`:
! `engine` argument is not valid.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Tokenization for: <none>
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* Tokenization for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 1
-- Operations
* Tokenization for: text
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 1
-- Training information
Training data contained 4 data points and no incomplete rows.
-- Operations
* Tokenization for: text | Trained
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.