trojan295 commited on
Commit
996990d
·
unverified ·
1 Parent(s): 9f91b63

go : remove sample_best and sample_timestamp bindings (#409)

Browse files
Files changed (1) hide show
  1. bindings/go/whisper.go +0 -10
bindings/go/whisper.go CHANGED
@@ -147,16 +147,6 @@ func (ctx *Context) Whisper_decode(tokens []Token, past, threads int) error {
147
  }
148
  }
149
 
150
- // whisper_sample_best() returns the token with the highest probability
151
- func (ctx *Context) Whisper_sample_best() TokenData {
152
- return TokenData(C.whisper_sample_best((*C.struct_whisper_context)(ctx)))
153
- }
154
-
155
- // whisper_sample_timestamp() returns the most probable timestamp token
156
- func (ctx *Context) Whisper_sample_timestamp(is_initial bool) TokenData {
157
- return TokenData(C.whisper_sample_timestamp((*C.struct_whisper_context)(ctx), C.bool(is_initial)))
158
- }
159
-
160
  // Convert the provided text into tokens. The tokens pointer must be large enough to hold the resulting tokens.
161
  // Returns the number of tokens on success
162
  func (ctx *Context) Whisper_tokenize(text string, tokens []Token) (int, error) {
 
147
  }
148
  }
149
 
 
 
 
 
 
 
 
 
 
 
150
  // Convert the provided text into tokens. The tokens pointer must be large enough to hold the resulting tokens.
151
  // Returns the number of tokens on success
152
  func (ctx *Context) Whisper_tokenize(text string, tokens []Token) (int, error) {