init version for beam search word segmentation algorithms. it can not run.