vectorizer

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vector

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

func NewVector

func NewVector(vector []float32) Vector

func (*Vector) Distance

func (v *Vector) Distance(other *Vector) (float32, error)

func (*Vector) Equal

func (v *Vector) Equal(other *Vector) (bool, error)

func (*Vector) Len

func (v *Vector) Len() int

func (*Vector) ToArray

func (v *Vector) ToArray() []float32

func (*Vector) ToString

func (v *Vector) ToString() string

type Vectorizer

type Vectorizer interface {
	Corpi(corpi []string) (*Vector, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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