A `TransformBlock` for texts

TextBlock(
  tok_tfm,
  vocab = NULL,
  is_lm = FALSE,
  seq_len = 72,
  backwards = FALSE,
  min_freq = 3,
  max_vocab = 60000,
  special_toks = NULL,
  pad_tok = NULL
)

Arguments

tok_tfm

tok_tfm

vocab

vocab

is_lm

is_lm

seq_len

seq_len

backwards

backwards

min_freq

min_freq

max_vocab

max_vocab

special_toks

special_toks

pad_tok

pad_tok

Value

block object