Share via


EnglishRoberta.IdToToken(Int32, Boolean) Method

Definition

Map the tokenized Id to the token.

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

Parameters

id
Int32

The Id to map to the token.

skipSpecialTokens
Boolean

Indicate if want to skip the special tokens during the decoding.

Returns

The mapped token of the Id.

Applies to