Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
lcg-bioinfoI-bionlp
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-09-12 21:36:49 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25e10853f9d10214ddbfb9b8af398942a783750d
25e10853
1 parent
7d751ec1
Feature extraction and vectorizer three sentences
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
representaciones-vectoriales/extraccion-caracteristicas-vectorizacion.py
representaciones-vectoriales/extraccion-caracteristicas-vectorizacion.py
View file @
25e1085
...
...
@@ -82,8 +82,9 @@ if __name__ == "__main__":
print
(
' matrix.shape: '
,
matrix
.
shape
)
with
open
(
os
.
path
.
join
(
args
.
outputPath
,
"report-vectorizer.{}.txt"
.
format
(
args
.
vectorizer
)),
encoding
=
"utf-8"
,
mode
=
"w"
)
as
oFile
:
oFile
.
write
(
"Vectorizer: {}"
.
format
(
args
.
vectorizer
))
oFile
.
write
(
"Vectorizer: {}
\n
"
.
format
(
args
.
vectorizer
))
oFile
.
write
(
str
(
vectorizer
.
get_feature_names
()))
oFile
.
write
(
"
\n
"
)
oFile
.
write
(
str
(
matrix
.
toarray
()))
print
(
"Feature extraction and vectorizer in:
%
fs"
%
(
time
()
-
t0
))
...
...
Please
register
or
login
to post a comment