I am trying to calculate the semantic similarity by inputting the word list and output a word, which is the most word similarity in the list. E.g.

input:

list = ['portugal', 'spain', 'belgium', 'country', 'netherlands', 'italy']

output:

['country']

More Alhassan Mabrouk's questions See All
Similar questions and discussions