How to find out wether a word exists in english using nltk

前端 未结 3 2016
我寻月下人不归
我寻月下人不归 2021-01-02 13:33

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

3条回答
  •  伪装坚强ぢ
    2021-01-02 14:22

    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

提交回复
热议问题