nlu

package
v0.0.0-...-22acef4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunActions = map[string]func(entitiesList map[string]string) (string, error){
	"confirm":     confirm,
	"ask_name":    askName,
	"deny":        deny,
	"goodbye":     goodbye,
	"greet":       greet,
	"inform_time": informTime,
	"thanks":      thanks,
	"medical":     medical,
	"switch_mode": switchMode,
}

Functions

func ActionLocal

func ActionLocal(text string) ([]string, error)

func ChatWithCore

func ChatWithCore(text string) (string, error)

Types

type IntentRankingList

type IntentRankingList []struct {
	Name       string  `json:"name"`
	Confidence float64 `json:"confidence"`
}

func (IntentRankingList) Len

func (l IntentRankingList) Len() int

func (IntentRankingList) Less

func (l IntentRankingList) Less(i, j int) bool

func (IntentRankingList) Swap

func (l IntentRankingList) Swap(i, j int)

Jump to

Keyboard shortcuts

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