Skip to content

Commit

Permalink
Update lib/tokenizers/tokenizer.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
Virviil and jonatanklosko authored Aug 8, 2023
1 parent c1c3077 commit 1f95019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/tokenizers/tokenizer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ defmodule Tokenizers.Tokenizer do
* `:add_special_tokens` - whether to add special tokens to the
sequence. Defaults to `true`
* `:encoding_transformations` (default: `[]`) - a list of `Tokenizers.Encoding.Transformation.t()` to apply to the encoding.
Check `Tokenizers.Encoding.transform/2` for more information.
* `:encoding_transformations` - a list of `t:Tokenizers.Encoding.Transformation.t/0`
to apply to the encoding. Check `Tokenizers.Encoding.transform/2` for more
information. Defaults to `[]`
"""
@doc type: :inference
@spec encode(t(), encode_input(), keyword()) :: {:ok, Encoding.t()} | {:error, term()}
Expand Down

0 comments on commit 1f95019

Please sign in to comment.