model

package
v0.0.0-...-b2170da Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brain

type Brain struct {
	Model
	Name        string
	Description string
}

func (*Brain) GetDescription

func (brain *Brain) GetDescription() string

func (*Brain) GetID

func (brain *Brain) GetID() int64

func (*Brain) GetName

func (brain *Brain) GetName() string

type Class

type Class struct {
	Model
	BrainID int64
	Label   string
}

func (*Class) GetID

func (class *Class) GetID() int64

func (*Class) GetLabel

func (class *Class) GetLabel() string

type Model

type Model struct {
	ID        int64
	CreatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
}

type Token

type Token struct {
	Model
	BrainID int64
	Text    string
}

func (*Token) GetID

func (class *Token) GetID() int64

func (*Token) GetText

func (class *Token) GetText() string

type Training

type Training struct {
	Model
	BrainID      int64
	Comment      string
	SamplesCount int64
}

type TrainingClass

type TrainingClass struct {
	Model
	BrainID      int64
	TrainingID   int64
	ClassID      int64
	SamplesCount int64
}

type TrainingToken

type TrainingToken struct {
	Model
	BrainID      int64
	TrainingID   int64
	ClassID      int64
	TokenID      int64
	SamplesCount int64
}

Jump to

Keyboard shortcuts

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