StringMetricsExample { public static float example03() { String str1 = "A quirky thing it is. This is a sentence."; String str2 = "This sentence is similar. A quirky thing it is."; StringMetric metric = with(new CosineSimilarity<String>()) .tokenize(Tokenizers.qGram(3)) .build(); return metric.compare(str1, str2); }  static float example01(); static float example02(); static float example03();  }
@Test public void example03(){ assertEquals(0.7473f, StringMetricsExample.example03(), DELTA); }