From 0b07e2dcc37bf82e038b3036c929b635adefb0d5 Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Wed, 23 Jan 2013 14:43:20 -0700 Subject: Added information about implicits. --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index df457b1..4e4e23f 100755 --- a/readme.md +++ b/readme.md @@ -90,7 +90,7 @@ Output: _(Note the exception of integers, rather than doubles, being returned.)_ 2 ``` -__N-Gram Metric:__ _(Note you must specify the size of the n-gram you wish to use.)_ +__N-Gram Metric:__ _(Note you must specify the size of the n-gram you wish to use. This can be done implicitly.)_ ```scala println(NGramMetric.compare("night", "nacht")(1)) println(NGramMetric.compare("night", "nacht")(2)) @@ -104,7 +104,7 @@ Output: 0.5 ``` -__N-Gram Algorithm:__ _(Note you must specify the size of the n-gram you wish to use.)_ +__N-Gram Algorithm:__ _(Note you must specify the size of the n-gram you wish to use. This can be done implicitly.)_ ```scala println(NGramAlgorithm.compute("abcdefghijklmnopqrstuvwxyz")(1)) println(NGramAlgorithm.compute("abcdefghijklmnopqrstuvwxyz")(2)) @@ -130,7 +130,7 @@ Output: 0.6666666666666666 ``` -__Weighted Levenshtein Metric:__ _(Note you must specify the weight of each operation. Delete, insert, and then substitute.)_ +__Weighted Levenshtein Metric:__ _(Note you must specify the weight of each operation. Delete, insert, and then substitute. This can be done implicitly.)_ ```scala println(WeightedLevenshteinMetric.compare("book", "back")(10, 0.1, 1)) println(WeightedLevenshteinMetric.compare("hosp", "hospital")(10, 0.1, 1)) -- cgit v1.2.3