Class Word2VecFormat

    • Field Detail

      • SPACES

        public static final Pattern SPACES
        A pattern that matches a space.
    • Method Detail

      • write

        public static <V> void write​(BufferedWriter writer,
                                     List<NodeEmbedding<V>> embeddings,
                                     Word2VecFormat.SpaceStrategy spaceStrategy)
                              throws IOException
        Write the file in the Word2Vec format representing the node embeddings.
        Type Parameters:
        V - the type of nodes in the graph
        Parameters:
        writer - the writer
        embeddings - the embeddings
        spaceStrategy - the space handling strategy
        Throws:
        IOException - if an I/O error occurs