fernandoporazzi / sorensen-dice-coefficient

Implementarion of Sørensen–Dice coefficient to check how similar 2 strings are.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sørensen–Dice coefficient

Implementation of Sørensen–Dice coefficient to check how similar 2 strings are.

Returns a fraction between 0 and 1, which indicates the degree of similarity between the two strings. 0 indicates completely different strings, 1 indicates identical strings. The comparison is case-sensitive.

The CompareTwoStrings function requires 2 strings to be compared and returns a fraction from 0 to 1, both inclusive. Higher number indicates more similarity.

Dependencies

Golang

Up and running

After cloning or downloading the project, run the following command:

$ go run main.go

About

Implementarion of Sørensen–Dice coefficient to check how similar 2 strings are.


Languages

Language:Go 100.0%