7 references to CreateForEncoding
Microsoft.ML.Tokenizers.Tests (7)
TiktokenTests.cs (7)
468
Tokenizer tokenizer = TiktokenTokenizer.
CreateForEncoding
(encodingName);
499
Assert.Throws<ArgumentNullException>(() => TiktokenTokenizer.
CreateForEncoding
(null!));
500
Assert.Throws<ArgumentException>(() => TiktokenTokenizer.
CreateForEncoding
("r50k_base_"));
501
Assert.Throws<ArgumentException>(() => TiktokenTokenizer.
CreateForEncoding
("p50k_base_"));
502
Assert.Throws<ArgumentException>(() => TiktokenTokenizer.
CreateForEncoding
("p50k_edit_"));
503
Assert.Throws<ArgumentException>(() => TiktokenTokenizer.
CreateForEncoding
("cl100k_base_"));
504
Assert.Throws<ArgumentException>(() => TiktokenTokenizer.
CreateForEncoding
("o200k_base_"));