Skip to content

Go implementation of Dice coefficient to find similarity between two strings.

License

Notifications You must be signed in to change notification settings

FR0ST1N/strdice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strdice

Go implementation of Dice coefficient to find similarity between two strings.

Install

go get github.com/FR0ST1N/strdice

Example

package main

import (
        "fmt"
        "github.com/FR0ST1N/strdice"
)

func main() {
        fmt.Print(strdice.Compute("mouse", "mouse trap")) // 0.66
}

License