embedding

package
v0.0.0-...-e29e17f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(inputs []string, url string, client *http.Client) ([][]float32, error)

Generate creates word embeddings through universal sentence encoder for a group of text

Types

type ModelResponse

type ModelResponse struct {
	Outputs [][]float32 `json:"outputs"`
}

ModelResponse is the prediction response from the ml model api

Jump to

Keyboard shortcuts

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