emb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embedding

type Embedding struct {
	Word   string
	Dim    int
	Vector []float64
	Norm   float64
}

func (Embedding) Validate

func (e Embedding) Validate() error

type Embeddings

type Embeddings []Embedding

func Load

func Load(r io.Reader) (Embeddings, error)

func (Embeddings) Empty

func (embs Embeddings) Empty() bool

func (Embeddings) Find

func (embs Embeddings) Find(word string) (Embedding, bool)

func (Embeddings) Validate

func (embs Embeddings) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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