Parameters for the textTokenization operation.

interface TextTokenizationParams {
    headers?: OutgoingHttpHeaders;
    input: string;
    modelId: string;
    parameters?: WatsonXAI.TextTokenizeParameters;
    projectId?: string;
    spaceId?: string;
}

Properties

headers?: OutgoingHttpHeaders
input: string

The input string to tokenize.

modelId: string

The id of the model to be used for this request. Please refer to the list of models.

The parameters for text tokenization.

projectId?: string

The project that contains the resource. Either space_id or project_id has to be given.

spaceId?: string

The space that contains the resource. Either space_id or project_id has to be given.