bot

package
v0.0.0-...-be8af12 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatBot

type ChatBot struct {
	PrintMemStats  bool
	InputAdapter   input.InputAdapter
	LogicAdapter   logic.LogicAdapter
	OutputAdapter  output.OutputAdapter
	StorageAdapter storage.StorageAdapter
	Trainer        Trainer
}

func (*ChatBot) GetResponse

func (chatbot *ChatBot) GetResponse(text string) []logic.Answer

func (*ChatBot) Train

func (chatbot *ChatBot) Train(data interface{}) error

type ConversationTrainer

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

func NewConversationTrainer

func NewConversationTrainer(storage storage.StorageAdapter) *ConversationTrainer

func (*ConversationTrainer) Train

func (trainer *ConversationTrainer) Train(data interface{}) error

type CorpusTrainer

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

func NewCorpusTrainer

func NewCorpusTrainer(storage storage.StorageAdapter) *CorpusTrainer

func (*CorpusTrainer) Train

func (trainer *CorpusTrainer) Train(data interface{}) error

type Trainer

type Trainer interface {
	Train(interface{}) error
}

Directories

Path Synopsis
adapters

Jump to

Keyboard shortcuts

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