deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java
/**
     * Writes the word vectors to the given OutputStream. Note that this assumes an in memory cache.
     *
     * @param vec
     *            the word2vec to write
     * @param outputStream - OutputStream, where all data should be sent to
     *            the path to write
     * @throws IOException
     */
Writes the word vectors to the given OutputStream. Note that this assumes an in memory cache.
@param vec
the word2vec to write
@param outputStream - OutputStream, where all data should be sent to
the path to write
@throws IOException
Writes the word vectors to the given OutputStream . Note that this assumes an in memory cache . @param vec the word2vec to write @param outputStream - OutputStream where all data should be sent to the path to write @throws IOException
public static void writeWordVectors(@NonNull Word2Vec vec, @NonNull OutputStream outputStream) throws IOException {
        BufferedWriter writer =  new BufferedWriter(new OutputStreamWriter(outputStream));
        writeWordVectors(vec, writer);
        writer.flush();
        writer.close();
    }
public static void writeWordVectors ( @ NonNull Word2Vec vec , @ NonNull OutputStream outputStream ) throws IOException { BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( outputStream ) ) ; writeWordVectors ( vec , writer ) ; writer . flush ( ) ; writer . close ( ) ; }
Writes the word vectors to the given OutputStream.
Writes the word vectors to the given OutputStream .