go : implement SetSplitOnWord (#1114)

* Go binding: Implement SetSplitOnWord

* Add comment for consistency
This commit is contained in:
xdrudis
2023-07-25 09:10:12 -07:00
committed by GitHub
parent 1450346214
commit a2684cd93a
3 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,10 @@ func (p *Params) SetTranslate(v bool) {
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)
}