Skip to content

Commit

Permalink
go : remove sample_best and sample_timestamp bindings (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trojan295 authored Jan 16, 2023
1 parent 874bde8 commit 4a3f0d3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bindings/go/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,6 @@ func (ctx *Context) Whisper_decode(tokens []Token, past, threads int) error {
}
}

// whisper_sample_best() returns the token with the highest probability
func (ctx *Context) Whisper_sample_best() TokenData {
return TokenData(C.whisper_sample_best((*C.struct_whisper_context)(ctx)))
}

// whisper_sample_timestamp() returns the most probable timestamp token
func (ctx *Context) Whisper_sample_timestamp(is_initial bool) TokenData {
return TokenData(C.whisper_sample_timestamp((*C.struct_whisper_context)(ctx), C.bool(is_initial)))
}

// Convert the provided text into tokens. The tokens pointer must be large enough to hold the resulting tokens.
// Returns the number of tokens on success
func (ctx *Context) Whisper_tokenize(text string, tokens []Token) (int, error) {
Expand Down

0 comments on commit 4a3f0d3

Please sign in to comment.