public static class TokenLikelihood.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TokenLikelihood |
build() |
TokenLikelihood.Builder |
copy(TokenLikelihood model) |
TokenLikelihood.Builder |
likelihood(Double likelihood)
The likelihood of this token during generation.
|
TokenLikelihood.Builder |
token(String token)
A word, part of a word, or a punctuation.
|
public TokenLikelihood.Builder token(String token)
A word, part of a word, or a punctuation.
For example, apple is a token and friendship is made up of two tokens, friend and ship. When you run a model, you can set the maximum number of output tokens. Estimate three tokens per word.
token
- the value to setpublic TokenLikelihood.Builder likelihood(Double likelihood)
The likelihood of this token during generation.
likelihood
- the value to setpublic TokenLikelihood build()
public TokenLikelihood.Builder copy(TokenLikelihood model)
Copyright © 2016–2024. All rights reserved.