Minor changes to semantic similarity measure.