recommendation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSimilarity added in v0.2.0

func CalculateSimilarity(text1 string, delimiters1 []string, text2 string, delimiters2 []string) float64

CalculateSimilarity calculates the similarity between two texts based on word similarities

func CalculateSimilarityByLevenshteinDistance added in v0.2.0

func CalculateSimilarityByLevenshteinDistance(word1, word2 string) float64

CalculateSimilarityByLevenshteinDistance calculates the similarity between two words based on Levenshtein distance

func CalculateSimilarityBySequenceMatcher added in v0.2.0

func CalculateSimilarityBySequenceMatcher(word1, word2 string) float64

CalculateSimilarityBySequenceMatcher calculates the similarity between two words based on Levenshtein distance

func FindBestVmOsImage added in v0.1.1

func FindBestVmOsImage(keywords string, kwDelimiters []string, vmImages []mcir.TbImageInfo, imgDelimiters []string) string

FindBestVmOsImage finds the best matching image based on the similarity scores

func LevenshteinDistance added in v0.1.1

func LevenshteinDistance(text1, text2 string) int

LevenshteinDistance calculates the Levenshtein distance between two strings

func MBtoGiB added in v0.1.1

func MBtoGiB(mb float64) uint32

func Recommend

func Recommend(srcInfra []infra.Infra) (cloudmodel.InfraMigrationReq, error)

func SequenceMatcher added in v0.2.0

func SequenceMatcher(text1, text2 string) float64

SequenceMatcher calculates the similarity ratio between two strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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