func SenLogDirOption(dir string) Option {
	return func(c *Config) {
		c.opt[String("-senlogdir")] = String(dir)
	}
}
SenLogDirOption sets directory to log senone score files to.
package sphinx
import "github.com/xlab/pocketsphinx-go/pocketsphinx"
type Config struct {
	opt       map[String]interface{}
	evaluated *pocketsphinx.CommandLn
}
func NewConfig(opts ...Option) *Config {
	cfg := &Config{
		opt: make(map[String]interface{}, 32),
	}
	for i := range opts {
		opts[i](cfg)
	}
	return cfg
}
func NewConfigRetain(ln *pocketsphinx.CommandLn) *Config {
	return &Config{
		evaluated: pocketsphinx.CommandLnRetain(ln),
	}
}
func (c *Config) Retain() {
	c.evaluated = pocketsphinx.CommandLnRetain(c.evaluated)
}
func (c *Config) CommandLn() *pocketsphinx.CommandLn {
	if c.evaluated != nil {
		return c.evaluated
	}
	defn := pocketsphinx.Args()
	prevLn := pocketsphinx.CommandLnParseR(nil, defn, 0, nil, 0)
	c.evaluated = optToCommandLn(prevLn, c.opt)
	return c.evaluated
}
func (c *Config) Destroy() bool {
	if c.evaluated != nil {
		ret := pocketsphinx.CommandLnFreeR(c.evaluated)
		c.evaluated = nil
		return ret == 0
	}
	return true
}
type Option func(c *Config)
func LogFileOption(filename string) Option {
	return func(c *Config) {
		c.opt[String("-logfn")] = String(filename)
	}
}
func DebugOption(level int) Option {
	return func(c *Config) {
		c.opt[String("-debug")] = level
	}
}
func MFCLogDirOption(dir string) Option {
	return func(c *Config) {
		c.opt[String("-mfclogdir")] = String(dir)
	}
}
func RawLogDirOption(dir string) Option {
	return func(c *Config) {
		c.opt[String("-rawlogdir")] = String(dir)
	}
}