Skip to content

Commit

Permalink
Move alphabet function placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Virviil committed Oct 2, 2024
1 parent 67a9366 commit 890285c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/tokenizers/normalizer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ defmodule Tokenizers.Normalizer do
"""
@spec byte_level :: t()
defdelegate byte_level(), to: Tokenizers.Native, as: :normalizers_byte_level

@doc """
Gets ByteLevel normalizer's alphabet.
"""
defdelegate byte_level_alphabet(), to: Tokenizers.Native, as: :normalizers_byte_level_alphabet
end

defimpl Inspect, for: Tokenizers.Normalizer do
Expand All @@ -170,10 +175,3 @@ defimpl Inspect, for: Tokenizers.Normalizer do
concat(["#Tokenizers.Normalizer<", to_doc(attrs, opts), ">"])
end
end

defmodule Tokenizers.Normalizer.ByteLevel do
@doc """
Gets ByteLevel normalizer's alphabet.
"""
defdelegate alphabet(), to: Tokenizers.Native, as: :normalizers_byte_level_alphabet
end

0 comments on commit 890285c

Please sign in to comment.