Helpers for building transformation lists passed to
IREE.Tokenizers.Encoding.transform/2 or the :encoding_transformations
option on encode functions.
Summary
Functions
Builds a padding transformation.
Builds a transformation that replaces all sequence IDs with the given value.
Builds a truncation transformation.
Types
@type t() :: {:pad, {non_neg_integer(), keyword()}} | {:truncate, {non_neg_integer(), keyword()}} | {:set_sequence_id, non_neg_integer()}
A single encoding transformation.
Functions
@spec pad( non_neg_integer(), keyword() ) :: t()
Builds a padding transformation.
@spec set_sequence_id(non_neg_integer()) :: t()
Builds a transformation that replaces all sequence IDs with the given value.
@spec truncate( non_neg_integer(), keyword() ) :: t()
Builds a truncation transformation.