(self, fn)
| 173 | plt.show() |
| 174 | |
| 175 | def save(self, fn): |
| 176 | # function word_analogies expects a (V,D) matrx and a (D,V) matrix |
| 177 | arrays = [self.W, self.U.T] |
| 178 | np.savez(fn, *arrays) |
| 179 | |
| 180 | |
| 181 | def main(we_file, w2i_file, use_brown=True, n_files=50): |