@@ -0,0 +1,645 @@
+package edu.antonym;%0A%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileOutputStream;%0Aimport java.io.PrintStream;%0A%0Aimport edu.antonym.prototype.VectorEmbedding;%0Aimport edu.antonym.prototype.Vocabulary;%0A%0Apublic class Util %7B%0A%09static void saveVectors(VectorEmbedding embed, Vocabulary vocab, File out) throws FileNotFoundException %7B%0A%09%09int dim=embed.getDimension();%0A%09%09%0A%09%09PrintStream ps=new PrintStream(out);%0A%09%09ps.println(dim);%0A%09%09for(int i=0; i%3Cvocab.size(); i++) %7B%0A%09%09%09float%5B%5D vect=embed.getVectorRep(i);%0A%09%09%09for(int j=0; j%3Cdim; j++) %7B%0A%09%09%09%09ps.print(vect%5Bj%5D);%0A%09%09%09%09ps.print(' ');%0A%09%09%09%7D%0A%09%09%09ps.println();%0A%09%09%7D%0A%09%09ps.close();%0A%09%7D%0A%7D%0A

Add Util class with function for saving vectors