model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model 模型

func New

func New() *Model

New 创建空模型

func (*Model) Evaluate

func (m *Model) Evaluate(str string) string

Evaluate 根据输入内容进行推理

func (*Model) Load

func (m *Model) Load(dir string)

Load 加载模型

func (*Model) Train

func (m *Model) Train(sampleDir, modelDir string)

Train 训练模型

Jump to

Keyboard shortcuts

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