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 08:25:13 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
348e1c78504609c366c03cdb15e159f24f0d40ab
348e1c78
1 parent
2fc5dae8
LSA word embedding examples
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
sentence-representation/lsa_example.py
sentence-representation/lsa_example.py
View file @
348e1c7
...
...
@@ -90,7 +90,7 @@ lsa=gensim.models.lsimodel.LsiModel(corpus, id2word=dictionary,
num_topics
=
n_topics
)
# Print the n topics in our corpus:
#lsa.print_topics(n_topics)
f
=
open
(
"topics_file.txt"
,
"w
b
"
)
f
=
open
(
"topics_file.txt"
,
"w"
)
f
.
write
(
"-------------------------------------------------
\n
"
)
for
t
in
lsa
.
show_topics
():
f
.
write
(
"
%
s
\n
"
%
str
(
t
))
...
...
Please
register
or
login
to post a comment