LsaSimilarityMeasure extends TextSimilarityMeasureBase { @Override public double getSimilarity(Collection<String> strings1, Collection<String> strings2) throws SimilarityException { return measure.getSimilarity(strings1, strings2); } LsaSimilarityMeasure(File modelFile); @Override double getSimilarity(Collection<String> strings1,
			Collection<String> strings2); void setCacheSize(int cacheSize);  }
@Test public void lsaSimilarityTest() throws IOException, SimilarityException { String[] text1 = "This is a test .".split(" "); String[] text2 = "This is an example .".split(" "); TextSimilarityMeasure lsa = new LsaSimilarityMeasure(new File("src/test/resources/model/test.sspace")); assertEquals(1.0, lsa.getSimilarity(text1, text1), 0.00001); assertEquals(0.837171, lsa.getSimilarity(text1, text2), 0.00001); }