deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/loader/WordVectorSerializer.java
/**
     * Writes the word vectors to the given path. Note that this assumes an in memory cache
     *
     * @param vec
     *            the word2vec to write
     * @param path
     *            the path to write
     * @throws IOException
     */
Writes the word vectors to the given path. Note that this assumes an in memory cache
@param vec
the word2vec to write
@param path
the path to write
@throws IOException
Writes the word vectors to the given path . Note that this assumes an in memory cache @param vec the word2vec to write @param path the path to write @throws IOException
public static void writeWordVectors(@NonNull Word2Vec vec, @NonNull String path)
            throws IOException {
        BufferedWriter write = new BufferedWriter(new FileWriter(new File(path), false));
        writeWordVectors(vec, write);
        write.flush();
        write.close();
    }
public static void writeWordVectors ( @ NonNull Word2Vec vec , @ NonNull String path ) throws IOException { BufferedWriter write = new BufferedWriter ( new FileWriter ( new File ( path ) , false ) ) ; writeWordVectors ( vec , write ) ; write . flush ( ) ; write . close ( ) ; }
Writes the word vectors to the given path.
Writes the word vectors to the given path .