Carlos-Francisco Méndez-Cruz

WISSE example

...@@ -41,6 +41,12 @@ __author__ = 'CMendezC' ...@@ -41,6 +41,12 @@ __author__ = 'CMendezC'
41 # C:\Anaconda3\python plot_Vectors_LSA.py --outputPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa\plots --vectorPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa --vectorFile GU_lsa_local_vectors_88T.txt --absoluteValue --outputFormat pdf 41 # C:\Anaconda3\python plot_Vectors_LSA.py --outputPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa\plots --vectorPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa --vectorFile GU_lsa_local_vectors_88T.txt --absoluteValue --outputFormat pdf
42 # C:\Anaconda3\python plot_Vectors_LSA.py --outputPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa\plots --vectorPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa --vectorFile GU_lsa_local_vectors_120T.txt --absoluteValue --outputFormat pdf 42 # C:\Anaconda3\python plot_Vectors_LSA.py --outputPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa\plots --vectorPath C:\Users\cmendezc\Documents\GENOMICAS\GENSOR_UNITS\wordEmbeddings\lsa --vectorFile GU_lsa_local_vectors_120T.txt --absoluteValue --outputFormat pdf
43 43
44 +# python3.4 plot_Vectors.py
45 +# --outputPath /home/cmendezc/gitlab_repositories/sentence-representation-word-embeddings/sentence-representation
46 +# --vectorPath /home/cmendezc/gitlab_repositories/sentence-representation-word-embeddings/sentence-representation
47 +# --vectorFile test.vec --absoluteValue --outputFormat pdf
48 +# python3.4 plot_Vectors.py --outputPath /home/cmendezc/gitlab_repositories/sentence-representation-word-embeddings/sentence-representation --vectorPath /home/cmendezc/gitlab_repositories/sentence-representation-word-embeddings/sentence-representation --vectorFile test.vec --absoluteValue --outputFormat pdf
49 +
44 ########################################################### 50 ###########################################################
45 # MAIN PROGRAM # 51 # MAIN PROGRAM #
46 ########################################################### 52 ###########################################################
...@@ -143,9 +149,9 @@ if __name__ == "__main__": ...@@ -143,9 +149,9 @@ if __name__ == "__main__":
143 149
144 fig.tight_layout() 150 fig.tight_layout()
145 if options.absoluteValue: 151 if options.absoluteValue:
146 - fileName = options.vectorFile.replace('.txt', '.abs.' + options.outputFormat) 152 + fileName = options.vectorFile+ '.abs.' + options.outputFormat
147 else: 153 else:
148 - fileName = options.vectorFile.replace('.txt', '.' + options.outputFormat) 154 + fileName = options.vectorFile + options.outputFormat
149 fig.savefig(os.path.join(options.outputPath, fileName)) 155 fig.savefig(os.path.join(options.outputPath, fileName))
150 156
151 # plt.axis('tight') 157 # plt.axis('tight')
......