https://github.com/fr0st1n/strdice
Go implementation of Dice coefficient to find similarity between two strings.
https://github.com/fr0st1n/strdice
dice-coefficient go go-module golang string string-matching string-similarity
Last synced: about 1 year ago
JSON representation
Go implementation of Dice coefficient to find similarity between two strings.
- Host: GitHub
- URL: https://github.com/fr0st1n/strdice
- Owner: FR0ST1N
- License: mit
- Created: 2022-07-28T13:32:38.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T13:43:36.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T02:11:16.600Z (over 1 year ago)
- Topics: dice-coefficient, go, go-module, golang, string, string-matching, string-similarity
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strdice
Go implementation of [Dice coefficient](https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient) to find similarity between two strings.
## Install
```bash
go get github.com/FR0ST1N/strdice
```
## Example
```go
package main
import (
"fmt"
"github.com/FR0ST1N/strdice"
)
func main() {
fmt.Print(strdice.Compute("mouse", "mouse trap")) // 0.66
}
```
## License
- [MIT](LICENSE)