Answer the question
In order to leave comments, you need to log in
How to get 3 words from the file that are most similar to the one the user enters?
How to get 3 words from the file that are most similar to the one the user enters? I tried to do something, but nothing worked
w = input('Please, enter your word:')
a = w
print(a)
from nltk.corpus import wordnet as wn
words = wordnet.words('1-1000.txt')
for synset in '1-1000.txt'(a, wn.NOUN):
print(synset.name().lemma_names())
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question