So may typically have@
StringMetric metric = with(new CosineSimilarity<String>())
.simplify(Simplifiers.toLowerCase())
.simplify(Simplifiers.removeDiacritics())
.simplify(new SpecialReplacementsSimplifier())
.tokenize(Tokenizers.whitespace())
float result = metric.compare(s1,s2)
What I would like to do for debugging is an easy way to see the final step before the cosine similarity, i,e the contents of the sets created by applying the simplifiers and then finally the tokenizer(s), is this possible ?