gse: github.com/go-ego/gse/hmm Index | Files

package hmm

import "github.com/go-ego/gse/hmm"

Package hmm is the Golang HMM cut module

Package hmm model data The data from https://github.com/fxsjy/jieba

Index

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 ...map[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.