Class ByteLevelDecoder
Converts byte-level characters to unicode characters, then concat them into a single string.
Implements
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.Decoders
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class ByteLevelDecoder : IDecoder
Constructors
ByteLevelDecoder()
Initializes a new instance of the ByteLevelDecoder type.
Declaration
public ByteLevelDecoder()
Methods
Decode(IReadOnlyList<string>, Output<string>)
Applies modifications to the input detokenized strings.
Declaration
public void Decode(IReadOnlyList<string> tokens, Output<string> output)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<string> | tokens | The string values to modify. |
| Output<string> | output | The recipient of modified strings. |