utils

package
v0.0.0-...-e90a610 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cosine

func Cosine(a, b map[string]float64) (sim float64)

Cosine calculates the cosine similarity of the given vector

func SHA256

func SHA256(in string) string

SHA256 SHA256 hash

func WordCount

func WordCount(words []string) map[string]float64

WordCount counts word for given strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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