Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngram

Go implementation of Kondrak N-SIM and N-DIST (SPIRE 2005). Built for Watchman token scoring.

import "github.com/PhonoGrams/ngram"

ngram.Similarity("toradol", "tegretol") // N-SIM, n=2 (BI-SIM)
ngram.NSim("cycloserine", "cyclosporine", 3)
ngram.NDist("precede", "preceed", 2)

First-letter affixing (the first character is repeated n-1 times). Positional n-gram credit is the fraction of matching character positions.

References

License

Apache License 2.0

About

Kondrak N-SIM / N-DIST (SPIRE 2005) for Watchman / OFAC name matching

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages