Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
sentence-representation-word-embeddings
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2018-03-09 11:56:17 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ce2ee5652b7eb9e99646e7560f96d460d1e18e1
7ce2ee56
1 parent
32a7185b
WISSE example
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
sentence-representation/plot_Vectors.py
sentence-representation/plot_Vectors.py
View file @
7ce2ee5
...
...
@@ -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')
...
...
Please
register
or
login
to post a comment