Compute measures of word similarity