tests/testthat/_snaps/R4.3/tokenizer-tokenizersbpe.md

Errors if vocabulary size is set to low.

Code
  recipe(~text, data = tibble(text = "hello")) %>% step_tokenize(text, engine = "tokenizers.bpe",
    training_options = list(vocab_size = 2)) %>% prep()
Condition
  Error in `step_tokenize()`:
  Caused by error in `prep()`:
  ! `vocabulary_size` of 2 is too small for column `text` which has a unique character count of 4


EmilHvitfeldt/textrecipes documentation built on April 7, 2024, 5:02 a.m.