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 23:58:05 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ba6768085eca117c2a87cdb0813f19b43ec62bf5
ba676808
1 parent
82770fcc
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 @
ba67680
...
...
@@ -109,7 +109,7 @@ n = 0
with
open
(
"vectors_file.txt"
,
"w"
)
as
f
:
for
pertenence
,
sentence
in
zip
(
corpus_lsa
,
sentences
):
if
n_docs
<=
0
:
# print "%s\t\t%s" % (pertenence, sentence.split("\t")[0]
)
print
(
"
%
s
\t\t
%
s"
%
(
pertenence
,
sentence
.
split
(
"
\t
"
)[
0
])
)
p
=
[
dict
(
pertenence
)[
x
]
if
x
in
dict
(
pertenence
)
else
0.0
for
x
in
range
(
n_topics
)]
f
.
write
(
...
...
Please
register
or
login
to post a comment