GreedyStringTiling extends TextSimilarityMeasureBase { @Override public double getSimilarity(Collection<String> stringList1, Collection<String> stringList2) throws SimilarityException { return getSimilarity(StringUtils.join(stringList1, " "), StringUtils.join(stringList2, " ")); } GreedyStringTiling(int minMatchLength); @Override double getSimilarity(Collection<String> stringList1,
			Collection<String> stringList2); @Override double getSimilarity(String string1, String string2); @Override String getName();  }
@Test public void test() throws Exception { String a1 = "The quick brown fox jumps over the lazy dog."; String a2 = "Lorem ipsum quick brown dolor, consectetur over the nomen tuum."; TermSimilarityMeasure measure = new GreedyStringTiling(3); assertEquals(0.522, measure.getSimilarity(a1, a2), epsilon); }