code: def prepare_char_embeddings(embeddings, sentences):
      X = []
  
      for sentence in tqdm.tqdm(sentences):
          sentence = " ".join([x.text for x in sentence])
  
          hidden = embeddings.lm.get_representation([sentence], "", "")
          X.append(hidden.squeeze().detach().numpy())
  
      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 5 for calling the Visualizer obj's underlying member method code with example usage: obj.prepare_char_embeddings(embeddings, sentences) and returns: X