Code
prep(step_stopwords(recipe(~., data = mtcars), language = -4))
Condition
Error in `step_stopwords()`:
Caused by error in `prep()`:
! `language` must be a single string, not the number -4.
Code
prep(step_stopwords(recipe(~., data = mtcars), keep = -4))
Condition
Error in `step_stopwords()`:
Caused by error in `prep()`:
! `keep` must be `TRUE` or `FALSE`, not the number -4.
Code
prep(step_stopwords(recipe(~., data = mtcars), stopword_source = -4))
Condition
Error in `step_stopwords()`:
Caused by error in `prep()`:
! `stopword_source` must be a single string, not the number -4.
Code
prep(step_stopwords(recipe(~., data = mtcars), custom_stopword_source = 1:10))
Condition
Error in `step_stopwords()`:
Caused by error in `prep()`:
! `custom_stopword_source` must be a character vector or `NULL`, not an integer vector.
Code
bake(trained, new_data = tokenized_test_data[, -1])
Condition
Error in `step_stopwords()`:
! The following required column is missing from `new_data`: text.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Stop word removal 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
* Stop word removal for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 1
-- Operations
* Tokenization for: text
* Stop word removal 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
* Stop word removal for: text | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.