stringmetric

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 2 Imported by: 0

README

stringmetric

A port of the string metric algorithms from Scala (https://github.com/rockymadden/stringmetric) to Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HammingMetric added in v1.2.0

func HammingMetric(a string, b string) float64

HammingMetric calculates the hamming distance between two strings

func RatcliffObershelpMetric

func RatcliffObershelpMetric(a string, b string) float64

RatcliffObershelpMetric calculates strings similarity from two strings

func RatcliffObershelpMetric2

func RatcliffObershelpMetric2(a []byte, b []byte) float64

RatcliffObershelpMetric2 calculates strings similarity from two byte arrays (chars)

func SorensenDiceMetric added in v1.1.0

func SorensenDiceMetric(n int, a string, b string) float64

SorensenDiceMetric calculates strings similarity from two byte arrays using n-gram size

Types

This section is empty.

Directories

Path Synopsis
tokenizer

Jump to

Keyboard shortcuts

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