From: Damian Czaja Date: Mon, 16 Jan 2023 17:18:10 +0000 (+0100) Subject: go : remove sample_best and sample_timestamp bindings (#409) X-Git-Tag: upstream/1.7.4~1614 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4a3f0d3fe9ff7c3ba2896dfe27cf39224456032b;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp go : remove sample_best and sample_timestamp bindings (#409) --- diff --git a/bindings/go/whisper.go b/bindings/go/whisper.go index 8d12fed1..78ca07d6 100644 --- a/bindings/go/whisper.go +++ b/bindings/go/whisper.go @@ -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) {