[][src]Crate trigram

The trigram library computes the similarity of strings, inspired by the similarity function in the Postgresql pg_trgm extension: https://www.postgresql.org/docs/9.1/pgtrgm.html.

Functions

jaccard

Jaccard similarity between two sets. https://en.wikipedia.org/wiki/Jaccard_index

similarity

Similarity of two strings as the Jaccard similarity of their trigram sets.