Useful in comparing TFIDF text representations, instead of using cosine https://en.wikipedia.org/wiki/Cosine_similarity#Soft_cosine_measure The similarity function s_i_j should be plugable (as input to the function)