code: def nearest_neighbors(self, word, top_k=10):
      point = self[word]
      diff = self.vectors - point
      distances = np.linalg.norm(diff, axis=1)
      top_ids = distances.argsort()[1:top_k+1]
      return [self.vocabulary.id_word[i] for i in top_ids]