다음을 통해 공유


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입니다.

적용 대상