Handles everything you need to assemble a mini-batch of inputs and targets, as well as decode the dictionary produced
HF_QABatchTransform(
hf_arch,
hf_tokenizer,
max_length = NULL,
padding = TRUE,
truncation = TRUE,
is_split_into_words = FALSE,
n_tok_inps = 1,
hf_input_return_type = HF_QuestionAnswerInput(),
...
)
architecture
tokenizer
maximum length
padding
truncation
to split into words or not
number of tok inputs
input return type
additional arguments
None
as a byproduct of the tokenization process in the `encodes` method.