Skip to content

Commit

Permalink
Merge pull request #280 from tidymodels/RC-1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt authored Jan 24, 2025
2 parents 435e3fb + b8754ff commit 6c8f451
Show file tree
Hide file tree
Showing 52 changed files with 94 additions and 90 deletions.
6 changes: 2 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: textrecipes
Title: Extra 'Recipes' for Text Processing
Version: 1.0.6.9000
Version: 1.0.7.9000
Authors@R: c(
person("Emil", "Hvitfeldt", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-0679-1945")),
Expand All @@ -20,7 +20,7 @@ URL: https://github.com/tidymodels/textrecipes,
BugReports: https://github.com/tidymodels/textrecipes/issues
Depends:
R (>= 3.6),
recipes (>= 1.1.0.9000)
recipes (>= 1.1.0)
Imports:
cli,
lifecycle,
Expand Down Expand Up @@ -54,8 +54,6 @@ Suggests:
tokenizers.bpe,
udpipe,
wordpiece
Remotes:
tidymodels/recipes
VignetteBuilder:
knitr
Config/Needs/website: tidyverse/tidytemplate, reticulate
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# textrecipes (development version)

# textrecipes 1.0.7

## Improvements

* Documentation for tidy methods for all steps has been improved to describe the return value more accurately. (#262)

* Calling `?tidy.step_*()` now sends you to the documentation for `step_*()` where the outcome is documented. (#261)

* `step_textfeatures()` has been made faster and more robust. (#265)

## Bug Fixes

* Fixed bug in `step_clean_levels()` where it would produce NAs for character columns. (#274)

# textrecipes 1.0.6
Expand All @@ -17,6 +23,7 @@
# textrecipes 1.0.5

* `step_untokenize()` and `step_normalization()` now returns factors instead of strings. (#247)

# textrecipes 1.0.4

## Improvements
Expand Down
2 changes: 1 addition & 1 deletion R/clean_levels.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `orginal`, `value`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/clean_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/dummy_hash.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, `num_terms`, `collapse`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/lda.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `num_topics`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/lemma.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/ngram.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/pos_filter.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/sequence_onehot.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `vocabulary`, `token`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/stem.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `is_custom_stemmer`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/stopwords.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, `keep`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/text_normalization.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `normalization_form`, and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/textfeature.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `functions`, and `id`:
#'
#' \describe{
Expand Down Expand Up @@ -178,7 +178,7 @@ print.step_textfeature <-
invisible(x)
}

#' @rdname step_textfeatures
#' @rdname step_textfeature
#' @usage NULL
#' @export
tidy.step_textfeature <- function(x, ...) {
Expand Down
2 changes: 1 addition & 1 deletion R/texthash.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#'
#' @details # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, value and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/tf.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#' @param vocabulary A character vector of strings to be considered.
#' @param res The words that will be used to calculate the term frequency will
#' be stored here once this preprocessing step has be trained by
#' [prep.recipe()].
#' [recipes::prep.recipe()].
#' @template args-prefix
#' @template args-keep_original_cols
#' @template args-skip
Expand Down Expand Up @@ -54,7 +54,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/tfidf.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param vocabulary A character vector of strings to be considered.
#' @param res The words that will be used to calculate the term frequency will
#' be stored here once this preprocessing step has be trained by
#' [prep.recipe()].
#' [recipes::prep.recipe()].
#' @param smooth_idf TRUE smooth IDF weights by adding one to document
#' frequencies, as if an extra document was seen containing every term in the
#' collection exactly once. This prevents division by zero.
Expand Down Expand Up @@ -51,7 +51,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `token`, `weight`, and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/tokenfilter.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' will be applied to each observation of the data set. Defaults to `NULL`.
#' All other arguments will be ignored if this argument is used.
#' @param res The words that will be keep will be stored here once this
#' preprocessing step has be trained by [prep.recipe()].
#' preprocessing step has be trained by [recipes::prep.recipe()].
#' @template args-skip
#' @template args-id
#'
Expand All @@ -44,7 +44,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/tokenize.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/tokenize_bpe.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' vocabulary. Defaults to 1000. Highly encouraged to be tuned.
#' @param options A list of options passed to the tokenizer.
#' @param res The fitted [tokenizers.bpe::bpe()] model tokenizer will be stored
#' here once this preprocessing step has be trained by [prep.recipe()].
#' here once this preprocessing step has be trained by [recipes::prep.recipe()].
#' @template args-skip
#' @template args-id
#'
Expand All @@ -23,7 +23,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
4 changes: 2 additions & 2 deletions R/tokenize_sentencepiece.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' @param options A list of options passed to the tokenizer.
#' @param res The fitted [sentencepiece::sentencepiece()] model tokenizer will
#' be stored here once this preprocessing step has be trained by
#' [prep.recipe()].
#' [recipes::prep.recipe()].
#' @template args-skip
#' @template args-id
#'
Expand All @@ -28,7 +28,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/tokenize_wordpiece.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/tokenmerge.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms` and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/untokenize.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `value`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion R/word_embeddings.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#'
#' # Tidying
#'
#' When you [`tidy()`][tidy.recipe()] this step, a tibble is returned with
#' When you [`tidy()`][recipes::tidy.recipe()] this step, a tibble is returned with
#' columns `terms`, `embedding_rows`, `aggregation`, and `id`:
#'
#' \describe{
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ recipe(~text_var, data = data) %>%

This project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).

- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/textrecipes/issues).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ By contributing to this project, you agree to abide by its terms.

- For questions and discussions about tidymodels packages, modeling, and
machine learning, please [post on RStudio
Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).

- If you think you have encountered a bug, please [submit an
issue](https://github.com/tidymodels/textrecipes/issues).
Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## Release Summary

This is the 20th CRAN release of textrecipes.

The package was removed from CRAN because it depended on textfeatures which was removed. This issue has now been fixed.
This is the 21th CRAN release of textrecipes.

## R CMD check results

Expand Down
2 changes: 1 addition & 1 deletion man-roxygen/args-recipe.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#' @param recipe A [recipe] object. The step will be added to the
#' @param recipe A [recipes::recipe] object. The step will be added to the
#' sequence of operations for this recipe.
4 changes: 2 additions & 2 deletions man/step_clean_levels.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/step_clean_names.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/step_dummy_hash.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6c8f451

Please sign in to comment.