Language

CodeGenTokenizer.Decode メソッド

定義

オーバーロード

名前 説明
Decode(IEnumerable<Int32>)

指定した ID を文字列にデコードします。

Decode(IEnumerable<Int32>, Boolean, Boolean)

指定した ID を文字列にデコードします。

Decode(IEnumerable<Int32>, Span<Char>, Int32, Int32)

指定された ID をテキストにデコードし、結果を destination スパンに格納します。

Decode(IEnumerable<Int32>, Span<Char>, Boolean, Boolean, Int32, Int32)

指定された ID をテキストにデコードし、結果を destination スパンに格納します。

Decode(IEnumerable<Int32>)

ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs

指定した ID を文字列にデコードします。

public override string Decode(System.Collections.Generic.IEnumerable<int> ids);
override this.Decode : seq<int> -> string
Public Overrides Function Decode (ids As IEnumerable(Of Integer)) As String

パラメーター

ids
IEnumerable<Int32>

デコードする ID の一覧。

返品

デコードされた文字列。

適用対象

Decode(IEnumerable<Int32>, Boolean, Boolean)

ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs

指定した ID を文字列にデコードします。

public string Decode(System.Collections.Generic.IEnumerable<int> ids, bool hasPrefixSpace, bool considerSpecialTokens);
override this.Decode : seq<int> * bool * bool -> string
Public Function Decode (ids As IEnumerable(Of Integer), hasPrefixSpace As Boolean, considerSpecialTokens As Boolean) As String

パラメーター

ids
IEnumerable<Int32>

デコードする ID の一覧。

hasPrefixSpace
Boolean

エンコードされた文字列の先頭にスペースがあるかどうかを示します。

considerSpecialTokens
Boolean

デコード中に特別なトークンを考慮するかどうかを示します。

返品

デコードされた文字列。

適用対象

Decode(IEnumerable<Int32>, Span<Char>, Int32, Int32)

ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs

指定された ID をテキストにデコードし、結果を destination スパンに格納します。

public override System.Buffers.OperationStatus Decode(System.Collections.Generic.IEnumerable<int> ids, Span<char> destination, out int idsConsumed, out int charsWritten);
override this.Decode : seq<int> * Span<char> * int * int -> System.Buffers.OperationStatus
Public Overrides Function Decode (ids As IEnumerable(Of Integer), destination As Span(Of Char), ByRef idsConsumed As Integer, ByRef charsWritten As Integer) As OperationStatus

パラメーター

ids
IEnumerable<Int32>

デコードする ID の一覧。

destination
Span<Char>

デコードされたテキストを格納するスパン。

idsConsumed
Int32

デコード中に使用された ID の数。

charsWritten
Int32

宛先スパンに書き込まれた文字数。

返品

操作の状態は、すべての ID が正常にデコードされたか、 destination が小さすぎてデコードされた結果全体を含めなかったかを示します。

適用対象

Decode(IEnumerable<Int32>, Span<Char>, Boolean, Boolean, Int32, Int32)

ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs
ソース:
CodeGenTokenizer.cs

指定された ID をテキストにデコードし、結果を destination スパンに格納します。

public System.Buffers.OperationStatus Decode(System.Collections.Generic.IEnumerable<int> ids, Span<char> destination, bool hasPrefixSpace, bool considerSpecialTokens, out int idsConsumed, out int charsWritten);
override this.Decode : seq<int> * Span<char> * bool * bool * int * int -> System.Buffers.OperationStatus
Public Function Decode (ids As IEnumerable(Of Integer), destination As Span(Of Char), hasPrefixSpace As Boolean, considerSpecialTokens As Boolean, ByRef idsConsumed As Integer, ByRef charsWritten As Integer) As OperationStatus

パラメーター

ids
IEnumerable<Int32>

デコードする ID の一覧。

destination
Span<Char>

デコードされたテキストを格納するスパン。

hasPrefixSpace
Boolean

エンコードされた文字列の先頭にスペースがあるかどうかを示します。

considerSpecialTokens
Boolean

デコード中に特別なトークンを考慮するかどうかを示します。

idsConsumed
Int32

デコード中に使用された ID の数。

charsWritten
Int32

宛先スパンに書き込まれた文字数。

返品

操作の状態は、すべての ID が正常にデコードされたか、 destination が小さすぎてデコードされた結果全体を含めなかったかを示します。

適用対象