Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. neighbor_words = []
  2. #word = word.split()
  3. #word = [word]
  4. RI_yield = self.RI.find_nearest([word])
  5.  
  6. #for i in neighbor_words: print(i[0])
  7. for i in RI_yield:
  8. neighbor_words.append(i[0][0])
  9.  
  10. final_word = choice(neighbor_words)
  11.  
  12. final_list.append(final_word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement