public final class StringMetricsExample extends Object
StringMetrics
utility class contains a predefined list of well
known metrics.Constructor and Description |
---|
StringMetricsExample() |
Modifier and Type | Method and Description |
---|---|
static float |
example01()
Two strings can be compared using a predefined string metric.
|
static float |
example02()
A tokenizer is included when the metric is a string or list metric.
|
static float |
example03()
Using the string
StringMetricBuilder metrics can be
customized. |
public static float example01()
public static float example02()
public static float example03()
StringMetricBuilder
metrics can be
customized. Instead of a whitespace tokenizer a qgram tokenizer is used.
For more examples see StringMetricBuilderExample
.Copyright © 2014–2018. All rights reserved.