Skip to content

Calculate text distance (similarity) in Golang - Experimental implementation

License

Notifications You must be signed in to change notification settings

masatana/go-textdistance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

738b0ed · Oct 5, 2019

History

51 Commits
Jun 5, 2014
Jun 15, 2017
Jun 10, 2014
Dec 14, 2017
Jun 10, 2014
Jun 10, 2014
Nov 14, 2014
Aug 4, 2015
Dec 14, 2017
Dec 14, 2017
Aug 4, 2015
Jun 16, 2017
Jun 10, 2014
Jun 5, 2014
Oct 5, 2019

Repository files navigation

go-textdistance

Calculate various text distance with golang.

codecov

Implemented

How to Use

$ go get github.com/masatana/go-textdistance
package main

import (
	"fmt"

	"github.com/masatana/go-textdistance"
)

func main() {
	s1 := "this is a test"
	s2 := "that is a test"
	fmt.Println(textdistance.LevenshteinDistance(s1, s2))
	fmt.Println(textdistance.DamerauLevenshteinDistance(s1, s2))
	fmt.Println(textdistance.JaroDistance(s1, s2))
	fmt.Println(textdistance.JaroWinklerDistance(s1, s2))
}

How to test

$ go test
PASS
ok      github.com/masatana/go-textdistance     0.002s

License

This software is released under the MIT License, see LICENSE.txt.

About

Calculate text distance (similarity) in Golang - Experimental implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages