gse: Index | Files

package hmm

import ""

Package hmm is the Golang HMM cut module

Package hmm model data The data from


Package Files

hmm_seg.go prob_emit.go prob_trans.go viterbi.go

func Cut Uses

func Cut(sentence string) []string

Cut cuts sentence into words using HMM with Viterbi algorithm

func LoadModel Uses

func LoadModel(prob[rune]float64)

LoadModel load HMM model

func Viterbi Uses

func Viterbi(obs []rune, states []byte) (float64, []byte)

Viterbi go viterbi algorithm

Package hmm imports 3 packages (graph) and is imported by 1 packages. Updated 2019-06-30. Refresh now. Tools for package owners.