Distance geometry for word representations and applications