code: def prepare_word_embeddings(embeddings, sentences):
      X = []
  
      for sentence in tqdm.tqdm(sentences):
          embeddings.embed(sentence)
  
          for _i, token in enumerate(sentence):
              X.append(token.embedding.detach().numpy()[None, :])
  
      X = numpy.concatenate(X, 0)
  
      return X
  
file_path: flair/flair/visual/manifold.py
imports: import numpy
  import tqdm
  from sklearn.manifold import TSNE
label_desc: Use image node_id 3 for calling the Visualizer obj's underlying member method code with example usage: obj.prepare_word_embeddings(embeddings, sentences) and returns: X