Carlos-Francisco Méndez-Cruz

WISSE example

......@@ -41,6 +41,12 @@ __author__ = 'CMendezC'
# 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
# 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
# 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
# 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
###########################################################
# MAIN PROGRAM #
###########################################################
......@@ -143,9 +149,9 @@ if __name__ == "__main__":
fig.tight_layout()
if options.absoluteValue:
fileName = options.vectorFile.replace('.txt', '.abs.' + options.outputFormat)
fileName = options.vectorFile+ '.abs.' + options.outputFormat
else:
fileName = options.vectorFile.replace('.txt', '.' + options.outputFormat)
fileName = options.vectorFile + options.outputFormat
fig.savefig(os.path.join(options.outputPath, fileName))
# plt.axis('tight')
......