I want list of synonyms words for all English words..where can I get this? I need to add then in Elastic search synonym list to get more efficient results.
I want list of synonyms words for all English words..where can I get this? I need to add then in Elastic search synonym list to get more efficient results.
The most well-known thesaurus with English synonyms is WordNet.
If you want to access it from Python, you can use nltk for this purpose.
import nltk
nltk.download('wordnet')
from nltk.corpus import wordnet
synset = wordnet.synsets("cake")
print('Synonyms: ' + '; '.join(sorted({lemma.name() for sense in synset for lemma in sense.lemmas()})))
# Synonyms: bar; cake; coat; patty