docs: public static void writeTsneFormat(Glove vec, INDArray tsne, File csv) throws Exception {
          try (BufferedWriter write = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(csv), StandardCharsets.UTF_8))) {
              int words = 0;
              InMemoryLookupCache l = (InMemoryLookupCache) vec.vocab();
              for (String word : vec.vocab().words()) {
                  if (word == null) {
                      continue;
                  }
                  StringBuilder sb = new StringBuilder();
                  INDArray wordVector = tsne.getRow(l.wordFor(word).getIndex());
                  for (int j = 0; j < wordVector.length(); j++) {
                      sb.append(wordVector.getDouble(j));
                      if (j < wordVector.length() - 1) {
                          sb.append(",");
                      }
                  }
                  sb.append(",");
                  sb.append(word.replaceAll(" ", WHITESPACE_REPLACEMENT));
                  sb.append(" ");
  
                  sb.append("\n");
                  write.write(sb.toString());
  
              }
  
              log.info("Wrote " + words + " with size of " + vec.lookupTable().layerSize());
          }
      }