func (l *Lattice) WriteToHTK(filename String) bool {
	ret := pocketsphinx.LatticeWriteHtk(l.lat, filename.S())
	return ret == 0
}
WriteToHTK writes a lattice to disk in HTK format.
package sphinx
import (
	"fmt"
	"github.com/xlab/pocketsphinx-go/pocketsphinx"
)
type Lattice struct {
	lat *pocketsphinx.Lattice
}
type LatticeLink pocketsphinx.Latlink
type LatticeLinkIter pocketsphinx.LatlinkIter
type LatticeNode pocketsphinx.Latnode
type LatticeNodeIter pocketsphinx.LatnodeIter
func (d *Decoder) NewLattice(filename String) (*Lattice, error) {
	lat := pocketsphinx.LatticeRead(d.dec, filename.S())
	if lat == nil {
		err := fmt.Errorf("sphinx: failed to load lattice from %s", filename)
		return nil, err
	}
	l := &Lattice{
		lat: lat,
	}
	return l, nil
}
func (l *Lattice) Lattice() *pocketsphinx.Lattice {
	return pocketsphinx.LatticeRetain(l.lat)
}
func (l *Lattice) Retain() {
	l.lat = pocketsphinx.LatticeRetain(l.lat)
}
func (l *Lattice) Destroy() bool {
	if l.lat != nil {
		ret := pocketsphinx.LatticeFree(l.lat)
		l.lat = nil
		return ret == 0
	}
	return true
}
func (l *Lattice) WriteTo(filename String) bool {
	ret := pocketsphinx.LatticeWrite(l.lat, filename.S())
	return ret == 0
}