Skip to content

Add public SentencePieceTokenizer factory methods for Unigram from vocab list and tokenizer.json#7625

Merged
ericstj merged 16 commits into
mainfrom
copilot/add-sentencepiece-tokenizer-api
Jul 16, 2026
Merged

Add public SentencePieceTokenizer factory methods for Unigram from vocab list and tokenizer.json#7625
ericstj merged 16 commits into
mainfrom
copilot/add-sentencepiece-tokenizer-api

Address Tarek review: support null unk_id and reject unknown pre-toke…

512eb13
Select commit
Loading
Failed to load commit list.
Azure Pipelines / MachineLearning-CI failed Jul 16, 2026 in 3h 24m 20s

Build #20260715.1 had test failures

Details

Tests

  • Failed: 151 (0.35%)
  • Passed: 38,715 (89.50%)
  • Other: 4,390 (10.15%)
  • Total: 43,256

Annotations

Check failure on line 31 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Build log #L31

Bash exited with code '1'.

Check failure on line 61 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Build log #L61

Bash exited with code '1'.

Check failure on line 31 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Build log #L31

Bash exited with code '1'.

Check failure on line 31 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Build log #L31

Bash exited with code '1'.

Check failure on line 1 in Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

System.IO.InvalidDataException : End of Central Directory record could not be found.
Raw output
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding, Boolean overwriteFiles)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName)
   at Microsoft.ML.AutoML.Test.DatasetUtil.UnZip(String gzArchiveName, String destFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 231
   at Microsoft.ML.AutoML.Test.DatasetUtil.DownloadImageSet(String imagesDownloadFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 191
   at Microsoft.ML.AutoML.Test.DatasetUtil.GetFlowersDataset() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 136
   at Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/AutoFeaturizerTests.cs:line 107
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

System.IO.InvalidDataException : End of Central Directory record could not be found.
Raw output
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding, Boolean overwriteFiles)
   at Microsoft.ML.AutoML.Test.DatasetUtil.UnZip(String gzArchiveName, String destFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 231
   at Microsoft.ML.AutoML.Test.DatasetUtil.DownloadImageSet(String imagesDownloadFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 191
   at Microsoft.ML.AutoML.Test.DatasetUtil.GetFlowersDataset() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 136
   at Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/AutoFeaturizerTests.cs:line 107
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

System.IO.InvalidDataException : End of Central Directory record could not be found.
Raw output
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding, Boolean overwriteFiles)
   at Microsoft.ML.AutoML.Test.DatasetUtil.UnZip(String gzArchiveName, String destFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 231
   at Microsoft.ML.AutoML.Test.DatasetUtil.DownloadImageSet(String imagesDownloadFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 191
   at Microsoft.ML.AutoML.Test.DatasetUtil.GetFlowersDataset() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 136
   at Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/AutoFeaturizerTests.cs:line 107
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MachineLearning-CI

Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test

System.IO.InvalidDataException : End of Central Directory record could not be found.
Raw output
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding, Boolean overwriteFiles)
   at Microsoft.ML.AutoML.Test.DatasetUtil.UnZip(String gzArchiveName, String destFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 231
   at Microsoft.ML.AutoML.Test.DatasetUtil.DownloadImageSet(String imagesDownloadFolder) in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 191
   at Microsoft.ML.AutoML.Test.DatasetUtil.GetFlowersDataset() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/DatasetUtil.cs:line 136
   at Microsoft.ML.AutoML.Test.AutoFeaturizerTests.AutoFeaturizer_image_test() in /__w/1/s/test/Microsoft.ML.AutoML.Tests/AutoFeaturizerTests.cs:line 107
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)