# `IREE.Tokenizers.Encoding.Transformation`
[🔗](https://github.com/goodhamgupta/iree_tokenizers/blob/v0.7.0/lib/iree/tokenizers/encoding/transformation.ex#L1)

Helpers for building transformation lists passed to
`IREE.Tokenizers.Encoding.transform/2` or the `:encoding_transformations`
option on encode functions.

# `t`

```elixir
@type t() ::
  {:pad, {non_neg_integer(), keyword()}}
  | {:truncate, {non_neg_integer(), keyword()}}
  | {:set_sequence_id, non_neg_integer()}
```

A single encoding transformation.

# `pad`

```elixir
@spec pad(
  non_neg_integer(),
  keyword()
) :: t()
```

Builds a padding transformation.

# `set_sequence_id`

```elixir
@spec set_sequence_id(non_neg_integer()) :: t()
```

Builds a transformation that replaces all sequence IDs with the given value.

# `truncate`

```elixir
@spec truncate(
  non_neg_integer(),
  keyword()
) :: t()
```

Builds a truncation transformation.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
