go-fuzzyfinder: github.com/ktr0731/go-fuzzyfinder/scoring Index | Files

package scoring

import "github.com/ktr0731/go-fuzzyfinder/scoring"

Package scoring provides APIs that calculates similarity scores between two strings.


Package Files

scoring.go smith_waterman.go

func Calculate Uses

func Calculate(s1, s2 string) (int, [2]int)

Calculate calculates a similarity score between s1 and s2. The length of s1 must be greater or equal than the length of s2.

Package scoring imports 3 packages (graph) and is imported by 1 packages. Updated 2019-02-08. Refresh now. Tools for package owners.