code: def word_contexts(sentences):
      contexts = []
  
      for sentence in sentences:
          strs = [x.text for x in sentence.tokens]
  
          for i, token in enumerate(strs):
              prop = f'<b><font color="red"> {token} </font></b>'
  
              prop = " ".join(strs[max(i - 4, 0) : i]) + prop
              prop = prop + " ".join(
                  strs[i + 1 : min(len(strs), i + 5)]
              )
  
              contexts.append("<p>" + prop + "</p>")
  
      return contexts
  
file_path: flair/flair/visual/manifold.py
imports: import numpy
  import tqdm
  from sklearn.manifold import TSNE
label_desc: Use image node_id 4 for calling the Visualizer obj's underlying member method code with example usage: obj.word_contexts(sentences) and returns: contexts