diff options
author | Rocky Madden <git@rockymadden.com> | 2013-01-23 14:43:20 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2013-01-23 14:43:20 -0700 |
commit | 0b07e2dcc37bf82e038b3036c929b635adefb0d5 (patch) | |
tree | 1e00aa7d068ec773dcf09d0c70b63b9da5d0106b | |
parent | 73ce75fa7fc89ca2d4b012dd6a4af6119fb32426 (diff) | |
download | stringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.tar.gz stringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.tar.bz2 stringmetric-0b07e2dcc37bf82e038b3036c929b635adefb0d5.zip |
Added information about implicits.
-rwxr-xr-x | readme.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |