diff options
author | Rocky Madden <git@rockymadden.com> | 2012-11-14 15:54:19 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2012-11-14 15:54:19 -0700 |
commit | 73f92cba9918a8aea2d784cff94c5dbade5cbbbd (patch) | |
tree | 73bf16f623785c819f5426f073a51eb2cb5e4c9a /readme.md | |
parent | 76d10e362e3d830136dcfc4714f67bc7eff5f581 (diff) | |
download | stringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.tar.gz stringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.tar.bz2 stringmetric-73f92cba9918a8aea2d784cff94c5dbade5cbbbd.zip |
Fixed code example import bug.
Diffstat (limited to 'readme.md')
-rwxr-xr-x | readme.md | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,7 +2,7 @@ A small library of string metrics and phonetic algorithms implemented in Scala. Each metric and algorithm has a CLI. * __Phonetic metrics__ determine if two arguments sound the same phonetically. -* __Phonetic algorithms__ provide a means to determine the phonetic representation of the argument passed. All phonetic metrics have a standalone algorithm counterpart. +* __Phonetic algorithms__ provide a means to determine the phonetic representation of the argument passed. All phonetic metrics have an algorithm counterpart. * __Similarity metrics__ determine the distance or coefficient between two arguments. * __Similarity algorithms__ provide a means to access underlying similarity metric functionality, when applicable. An example is the N-Gram algorithm, which provides a means to get n-grams for a given argument with a specific n. * __Filters__, which can optionally be applied to metrics and algorithms, clean up arguments prior to evaluation. Filtering rules can easily be combined via trait stacking. @@ -72,8 +72,7 @@ if (distance >= 0.9) println("It's likely you're a match!") Basic example with single filter. ```scala -import org.hashtree.stringmetric.StringFilterDelegate -import org.hashtree.stringmetric.filter.AsciiLetterCaseStringFilter +import org.hashtree.stringmetric.filter.{ AsciiLetterCaseStringFilter, StringFilterDelegate } import org.hashtree.stringmetric.similarity.JaroWinklerMetric val distance = JaroWinklerMetric.compare("string1", "string2") |