docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PrecompiledNormalizer

    Normalizer that uses a precompiled trie and a byte blob to transform input text into a normalized form, typically for tokenization.

    Inheritance
    object
    PrecompiledNormalizer
    Implements
    INormalizer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.InferenceEngine.Tokenization.Normalizers
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class PrecompiledNormalizer : INormalizer

    Constructors

    PrecompiledNormalizer(IReadOnlyList<ulong>, ReadOnlySpan<byte>)

    Initializes a new instance of the PrecompiledNormalizer class.

    Declaration
    public PrecompiledNormalizer(IReadOnlyList<ulong> trieBlob, ReadOnlySpan<byte> normalizedBytes)
    Parameters
    Type Name Description
    IReadOnlyList<ulong> trieBlob

    Serialized representation of the double-array trie defining the normalization mappings.

    ReadOnlySpan<byte> normalizedBytes

    Read-only span over a byte blob that contains UTF-8 encoded, null-terminated normalized strings referenced by the trie.

    Methods

    Normalize(SubString)

    Applies transformations to the input string before pre-tokenization.

    Declaration
    public SubString Normalize(SubString original)
    Parameters
    Type Name Description
    SubString original
    Returns
    Type Description
    SubString

    The resulting string.

    Implements

    INormalizer
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)