Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
fb4664fc
Commit
fb4664fc
authored
Mar 11, 2025
by
jmorganca
Committed by
Michael Yang
Mar 11, 2025
Browse files
model: add more spm tokenizer tests
parent
20e35938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
model/process_text_spm_test.go
model/process_text_spm_test.go
+8
-0
No files found.
model/process_text_spm_test.go
View file @
fb4664fc
...
...
@@ -70,6 +70,14 @@ func TestSentencePieceEncode(t *testing.T) {
"请考试我的软件!12345"
,
"你好"
,
"Hello 你好 world!"
,
"Special characters: !@#$%^&*()_+-=[]{}|;':
\"
,./<>?"
,
"Multilingual: 你好 こんにちは Привет Hola مرحبا"
,
"Numbers and symbols: 123456789 +- */"
,
"Special tokens: <bos> text <eos>"
,
"Code snippets: func main() { fmt.Println(
\"
Hello World
\"
) }"
,
"Long text: "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
+
"Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
+
"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."
,
}
for
_
,
want
:=
range
cases
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment