docs: public static <T extends SequenceElement> void writeSequenceVectors(@NonNull SequenceVectors<T> vectors,
                                                                          @NonNull SequenceElementFactory<T> factory, @NonNull OutputStream stream) throws IOException {
          WeightLookupTable<T> lookupTable = vectors.getLookupTable();
          VocabCache<T> vocabCache = vectors.getVocab();
  
          try (PrintWriter writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(stream, StandardCharsets.UTF_8)))) {
  
              // at first line we save VectorsConfiguration
              writer.write(vectors.getConfiguration().toEncodedJson());
  
              // now we have elements one by one
              for (int x = 0; x < vocabCache.numWords(); x++) {
                  T element = vocabCache.elementAtIndex(x);
                  String json = factory.serialize(element);
                  INDArray d = Nd4j.create(1);
                  double[] vector = lookupTable.vector(element.getLabel()).dup().data().asDouble();
                  ElementPair pair = new ElementPair(json, vector);
                  writer.println(pair.toEncodedJson());
                  writer.flush();
              }
          }
      }