generate_text_processing_recipe: Generate a recipe for processing text data into a...

Description Usage Arguments Value

View source: R/process-data.R

Description

Adapted from work by Emil Hvitfeldt https://www.hvitfeldt.me/blog/text-classification-with-tidymodels/

Usage

1
generate_text_processing_recipe(formula, train_data, min_times = 10)

Arguments

formula

A model formula.

train_data

A data frame or tibble of the template data set.

min_times

An integer. Minimum number of times a word can appear before getting removed. Defaults to 10.

Value

recipes::recipe object


mdneuzerling/YelpMetaflow documentation built on Jan. 25, 2021, 12:36 a.m.