Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step order help messages #149

Open
EmilHvitfeldt opened this issue Jan 2, 2022 · 0 comments
Open

Step order help messages #149

EmilHvitfeldt opened this issue Jan 2, 2022 · 0 comments
Labels
feature a feature request or enhancement

Comments

@EmilHvitfeldt
Copy link
Member

Once #147 is finished, it is going to be easier to write messages to the user related to the use steps. We don't generally do this for recipe steps, but the steps in {textrecipes} are more interconnected than most recipe steps so we will make an exception.

Say you have the following recipe

recipe(outcome ~ text, data = data) %>%
  step_bpe_tokenize(text, n_tokenns = 1000) %>%
  step_tokenfilter(text, max_tokens = 500)

This would most likely be nonsensical since the vocabulary size is defined in step_bpe_tokenize(). Having step_tokenfilter() throw a message to the user would be helpful here. Similarly step_tokenize() %>% step_tfidf() could have an message telling the user to filter the tokens before creating columns.

I would like these just to be messages with a global option textrecipes.tips to turn all of these off as there are times where the tips will be wrong.

@EmilHvitfeldt EmilHvitfeldt added new steps feature a feature request or enhancement and removed new steps labels Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant