scores

package
v0.6.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMinMaxScores

func FindMinMaxScores(docs []vs.Document) (float32, float32)

func NormalizeDocScores

func NormalizeDocScores(docs []vs.Document) []vs.Document

NormalizeDocScores normalizes scores to a 0-1 range

func NormalizeScore

func NormalizeScore(score float32, minScore float32, maxScore float32) float32

NormalizeScore normalizes a single score

func SortBySimilarityScore added in v0.4.12

func SortBySimilarityScore(i, j vs.Document) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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