hmm

package
v0.80.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package hmm is the Golang HMM cut module

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cut

func Cut(text string, reg ...*regexp.Regexp) []string

Cut cuts text to words using HMM with Viterbi algorithm

func LoadModel

func LoadModel(prob ...map[rune]float64)

LoadModel load the HMM model

func Viterbi

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

Viterbi write viterbi algorithm by go

Types

This section is empty.

Directories

Path Synopsis
Package pos model data The data from https://github.com/fxsjy/jieba
Package pos model data The data from https://github.com/fxsjy/jieba

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL