I am looking for a proper solution to this question. This question has been asked many times before and i didnt find a single answer that suited. I need to use a corpus in N
I tried the above approach but for many words which should exist so I tried wordnet. I think this have more comprehensive vacabulary.-
from nltk.corpus import wordnet if wordnet.synsets(word): #Do something else: #Do some otherthing