StringMetricBuilderExample { public static float example04() { String a = "A quirky thing it is. This is a sentence."; String b = "This sentence is similar; a quirky thing it is."; StringMetric metric = with(new CosineSimilarity<String>()) .tokenize(Tokenizers.whitespace()) .tokenize(Tokenizers.qGram(3)) .build(); return metric.compare(a, b); }  static float example00(); static float example01(); static float example02(); static float example03(); static float example04(); static float example05(); static float example06(); static float example07();  }
@Test public void example04(){ assertEquals(0.8292f, StringMetricBuilderExample.example04(), DELTA); }