Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- neighbor_words = []
- #word = word.split()
- #word = [word]
- RI_yield = self.RI.find_nearest([word])
- #for i in neighbor_words: print(i[0])
- for i in RI_yield:
- neighbor_words.append(i[0][0])
- final_word = choice(neighbor_words)
- final_list.append(final_word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement