Dela via


EnglishRoberta.IdToString(Int32, Boolean) Method

Definition

Map the tokenized Id to the original string.

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

Parameters

id
Int32

The Id to map to the string.

skipSpecialTokens
Boolean

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

Returns

The mapped token of the Id.

Applies to