Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
Predictor is a structure which does tokenization and pass tokenized input with trained model to Classifier
func NewPredictor ¶
func NewPredictor( tokenizer TokenizerInterface, tokenRepository TokenRepositoryInterface, resultsRepository ResultsRepositoryInterface, ) *Predictor
NewPredictor returns a Predictor instance
type ResultsRepositoryInterface ¶
type ResultsRepositoryInterface interface {
GetTrainedModel(brainID int64) (classifier.TrainedModelInterface, error)
}
type TokenizerInterface ¶
Click to show internal directories.
Click to hide internal directories.