Unverified Commit 955c317c authored by Ikko Eltociear Ashimine's avatar Ikko Eltociear Ashimine Committed by GitHub
Browse files

chore: update tokenizer.go (#4571)

PreTokenziers -> PreTokenizers
parent 9f18b88a
......@@ -18,7 +18,7 @@ type Tokenizer struct {
Model TokenizerModel `json:"model"`
PreTokenizer struct {
PreTokenziers []struct {
PreTokenizers []struct {
Type string `json:"type"`
Pattern struct {
Regex string `json:"Regex"`
......@@ -84,7 +84,7 @@ func parseTokens(dirpath string) (pre string, tokens []Token, merges []string, e
}
sha256sum := sha256.New()
for _, pt := range t.PreTokenizer.PreTokenziers {
for _, pt := range t.PreTokenizer.PreTokenizers {
switch pt.Type {
case "Split":
if pt.Pattern.Regex != "" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment