]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
go : remove sample_best and sample_timestamp bindings (#409)
authorDamian Czaja <redacted>
Mon, 16 Jan 2023 17:18:10 +0000 (18:18 +0100)
committerGitHub <redacted>
Mon, 16 Jan 2023 17:18:10 +0000 (19:18 +0200)
bindings/go/whisper.go

index 8d12fed10be79d586752d58a30492a0d6dffbbb3..78ca07d66f36360898c749471c488fe58bd04b3e 100644 (file)
@@ -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) {