Bowsim is a library that provides a way to perform string similarity score calculation using bag of words model in Go.
Install Go, either from source or with a prepackaged binary. Then,
$ go get github.com/rfguri/bowsim
$ go test -bench=. -v
package main
import (
"fmt"
"github.com/rfguri/bowsim"
)
func main() {
a := "Jane loves me more than Julie loves me"
b := "Julie likes me more than Jake loves me"
s := bowsim.Get(a, b)
fmt.Println(s)
}
Pull requests are very much welcomed. Create your pull request on a non-master branch, make sure a test or example is included that covers your change and your commits represent coherent changes that include a reason for the change.
To run the integration tests, make sure to run go test
. TravisCI will also run the integration tests.
Copyright © 2017 Roger Fernandez Guri. It is free software, and may be redistributed under the terms specified in the LICENSE file.