I'm trying to use the similar function in NLTK but it keeps returning nothing, even when i put in a word that's in the text file. Any ideas? Concordance works, but not similar.
textList = Text(nltk.corpus.gutenberg.words(r'cleanPDF.txt'))
textList.similar("help")
If you could point me in the right direction that would be awesome!