Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
lcg-faaa
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-10-04 21:38:33 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e524420834164fd5516edc7270a6fbf45e0ea85
7e524420
1 parent
c0489941
LSA soft clustering
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
agrupamiento-datos-categoricos/lsa-soft-clustering.py
agrupamiento-datos-categoricos/lsa-soft-clustering.py
View file @
7e52442
...
...
@@ -89,7 +89,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
(
num_words
=
200
):
f
.
write
(
"
%
s
\n
"
%
str
(
t
))
...
...
Please
register
or
login
to post a comment