From 6f4d08371928cff8468e0b56309882a85068f9bb Mon Sep 17 00:00:00 2001 From: Damian Czaja Date: Sun, 15 Jan 2023 16:13:40 +0100 Subject: [PATCH] fix(go): remove sample_best and sample_timestamp bindings --- bindings/go/whisper.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bindings/go/whisper.go b/bindings/go/whisper.go index 8d12fed..78ca07d 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) {