Added semanticDistance method for comparing sentences.