ReadMeExample { public static float example03() { String str1 = "This is a sentence. It is made of words"; String str2 = "This sentence is similar. It has almost the same words"; StringDistance metric = StringDistanceBuilder .with(new EuclideanDistance<String>()) .simplify(Simplifiers.toLowerCase(Locale.ENGLISH)) .simplify(Simplifiers.replaceNonWord()) .tokenize(Tokenizers.whitespace()).build(); float result = metric.distance(str1, str2); return result; }  static float example01(); static float example02(); static float example03(); static float example04();  }
@Test public void example03(){ assertEquals(3.0000f, ReadMeExample.example03(), DELTA); }