Table of Contents

Method GetTokenCandidateTextChunkByRank

Namespace
LMKit.TextGeneration.Events
Assembly
LM-Kit.NET.dll

GetTokenCandidateTextChunkByRank(int)

Retrieves the text representation of a token based on its rank in terms of likelihood of occurrence.

public string GetTokenCandidateTextChunkByRank(int rankIndex)

Parameters

rankIndex int

The rank of the token whose text is to be retrieved. Must be an integer between 0 and the total number of tokens minus one.

Returns

string

A string representing the text value of the token at the specified rank.

Exceptions

ArgumentOutOfRangeException

Thrown when rankIndex is outside the valid range.