Cosine similarity matrix re-weighted using some other distance such as Levenshtein distance.