Skip to content

fernandoporazzi/sorensen-dice-coefficient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages