* Go binding: Implement SetSplitOnWord
* Add comment for consistency
p.translate = toBool(v)
}
+func (p *Params) SetSplitOnWord(v bool) {
+ p.split_on_word = toBool(v)
+}
+
func (p *Params) SetNoContext(v bool) {
p.no_context = toBool(v)
}
context.params.SetSpeedup(v)
}
+func (context *context) SetSplitOnWord(v bool) {
+ context.params.SetSplitOnWord(v)
+}
+
// Set number of threads to use
func (context *context) SetThreads(v uint) {
context.params.SetThreads(int(v))
SetDuration(time.Duration) // Set duration
SetThreads(uint) // Set number of threads to use
SetSpeedup(bool) // Set speedup flag
+ SetSplitOnWord(bool) // Set split on word flag
SetTokenThreshold(float32) // Set timestamp token probability threshold
SetTokenSumThreshold(float32) // Set timestamp token sum probability threshold
SetMaxSegmentLength(uint) // Set max segment length in characters