labse

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	// contains filtered or unexported fields
}

Gateway provides access to the LaBSE API (spaGO).

func New

func New(connection *grpc.ClientConn) *Gateway

New returns Gateway objects for accessing the LaBSE API.

func (*Gateway) Close

func (s *Gateway) Close() error

func (*Gateway) Vectorize

func (s *Gateway) Vectorize(text string) ([]float32, error)

Vectorize returns a dense representation of given text using Language-Agnostic BERT Sentence Embedding (LaBSE).

Jump to

Keyboard shortcuts

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