net6.0-windows
namespace Microsoft.ML.Tokenizers
{
    public class SentencePieceTokenizer : Tokenizer
    {
        public IReadOnlyList<int>! EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedString, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true);
    }
}
.NET 5.06.07.08.09.0
.NET Core 2.02.12.23.03.1
.NET Framework 4.6.14.6.24.74.7.14.7.24.84.8.1
.NET Standard 2.02.1
Information specific to net6.0
Assembly

Microsoft.ML.Tokenizers , Version=1.0.0.0, PublicKeyToken=cc7b13ffcd2ddd51

Referencing

Your project needs a package reference to Microsoft.ML.Tokenizers.

Package Microsoft.ML.Tokenizers (0.22.0-preview.24526.1) netstandard2.0
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API

11/08/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙