Documentation ¶
Index ¶
- func CosineSimilarity(first []float64, second []float64) float64
- func GenerateTokens(s string, vocabSize int, standalones []string) (tokens []string, tokenMap map[string]int)
- func GetEmbeddings(tokenized []int, mappings map[string]int, contextSize int, dimensions int, ...) [][]float64
- func GetMapping(tokens []string) map[string]int
- func OpenEmbeddings(path string) (tokens []string, embeddings [][]float64)
- func SaveEmbeddings(path string, tokens []string, embeddings [][]float64)
- func Tokenize(s string, mappings map[string]int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CosineSimilarity ¶ added in v1.6.2
func GenerateTokens ¶
func GetEmbeddings ¶ added in v1.6.2
func GetMapping ¶ added in v1.6.2
func OpenEmbeddings ¶ added in v1.6.2
func SaveEmbeddings ¶ added in v1.6.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.