(self, fn)
| 154 | plt.show() |
| 155 | |
| 156 | def save(self, fn): |
| 157 | # function word_analogies expects a (V,D) matrx and a (D,V) matrix |
| 158 | arrays = [self.W, self.U.T] |
| 159 | np.savez(fn, *arrays) |
| 160 | |
| 161 | |
| 162 | def main(we_file, w2i_file, use_brown=True, n_files=50): |