utils

package
Version: v0.0.0-...-2443ee7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 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.

Source Files

Jump to

Keyboard shortcuts

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