Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassServiceInterface ¶
type ClassServiceInterface interface {
FindOrCreate(brainID int64, label string) (entity.ClassInterface, error)
}
ClassServiceInterface defines dependency
type ResultsRepositoryInterface ¶
type ResultsRepositoryInterface interface {
SaveResult(brainID int64, res result.TrainingResult) error
}
ResultsRepositoryInterface defines dependency
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides functionality to brain's training
func NewTrainingService ¶
func NewTrainingService( classService ClassServiceInterface, resultsRepository ResultsRepositoryInterface, tokenizer TokenizerInterface, tokenService TokenServiceInterface, ) *Service
NewTrainingService is a constructor for TrainingService
type TextServiceCache ¶
type TextServiceCache struct {
// contains filtered or unexported fields
}
func NewTextServiceCache ¶
func NewTextServiceCache(service TokenServiceInterface) TextServiceCache
func (TextServiceCache) FindOrCreate ¶
func (c TextServiceCache) FindOrCreate(brainID int64, text string) int64
type TokenServiceInterface ¶
TokenServiceInterface defines dependency
type TokenizerInterface ¶
TokenizerInterface defines dependency
Click to show internal directories.
Click to hide internal directories.