Example #1
0
func (l Lattice) EOSNode() Node {
	return Node{node: C.mecab_lattice_get_eos_node(l.lattice)}
}
Example #2
0
// GetEosNode is a method to return a eos(end of sentence) node
func (l *Lattice) GetEosNode() (*Node, error) {
	return newNode(C.mecab_lattice_get_eos_node(l.toMecabLatticeT()))
}