次の方法で共有


Tokenizer.Decode メソッド

定義

オーバーロード

Decode(IEnumerable<Int32>, Boolean)

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

Decode(Int32, Boolean)

ID をマップされたトークンにデコードします。

Decode(IEnumerable<Int32>, Boolean)

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

public string? Decode (System.Collections.Generic.IEnumerable<int> ids, bool skipSpecialTokens = false);
member this.Decode : seq<int> * bool -> string
Public Function Decode (ids As IEnumerable(Of Integer), Optional skipSpecialTokens As Boolean = false) As String

パラメーター

ids
IEnumerable<Int32>

デコードする ID の一覧。

skipSpecialTokens
Boolean

デコードされた文字列から特別なトークンを削除する必要があるかどうか。

戻り値

デコードされた文字列。

適用対象

Decode(Int32, Boolean)

ID をマップされたトークンにデコードします。

public string? Decode (int id, bool skipSpecialTokens = false);
member this.Decode : int * bool -> string
Public Function Decode (id As Integer, Optional skipSpecialTokens As Boolean = false) As String

パラメーター

id
Int32

トークンにマップする ID。

skipSpecialTokens
Boolean

デコード中に特別なトークンをスキップするかどうかを指定します。

戻り値

入力 ID にマップされたトークンがない場合は、デコードされた文字列または null。

適用対象