Example #1
0
func (l Lattice) BOSNode() Node {
	return Node{node: C.mecab_lattice_get_bos_node(l.lattice)}
}
Example #2
0
// BosNode is a method to return a bos(begin of sentence) node
func (l *Lattice) BosNode() (*Node, error) {
	return newNode(C.mecab_lattice_get_bos_node(l.toMecabLatticeT()))
}