Documentation
¶
Index ¶
- func GetDimension(name string) int
- func GetMostSimilar(name, query string, top int) (map[string]float32, error)
- func GetWordN(name string) int
- func GetWordVector(name, word string) ([]float32, error)
- func GetWordVector64(name, word string) ([]float64, error)
- func GetWords(name string) ([]string, error)
- func LoadModel(name, path string)
- func Predict(name, sentence string, topN int) (map[string]float32, error)
- func PredictMaxIntention(name, sentence string) ([]string, []float32, error)
- func RemoveModel(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDimension ¶
func GetWordVector ¶
func GetWordVector64 ¶
func Predict ¶
Predict - predict, return the topN predicted label and their corresponding probability
func PredictMaxIntention ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.