Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lzap/stringsim
String pair similarity library in Go
https://github.com/lzap/stringsim
Last synced: 8 days ago
JSON representation
String pair similarity library in Go
- Host: GitHub
- URL: https://github.com/lzap/stringsim
- Owner: lzap
- Created: 2012-12-02T22:57:21.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-11T19:17:21.000Z (over 11 years ago)
- Last Synced: 2025-01-13T01:14:03.788Z (8 days ago)
- Language: Go
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
String similarity search for Go
===============================This simple library implements pair distance searching algorighm also known as
2-gram method. The code was highly inspired by Ruby library amatch and
algorithm described at http://www.catalysoft.com/articles/StrikeAMatch.htmlExample use
-----------import "stringsim/adjpair"
similarity := MatchStrings("test abc", "abc")
// float value 1.0 is for same strings
// and 0.0 is for totally different stringsThere are several other functions for comparing sentences or directory paths
which are being tokenized. Also low-level functions are exported so it is
possible to pre-calculate pair arrays and to work faster.License
-------GNU LGPL v3 or later: http://www.gnu.org/copyleft/lesser.html
vim: tw=79:fo+=w