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:35:23 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d751ec1ba1e59bbcd71486883fc65d865a94485
7d751ec1
1 parent
34e41934
Feature extraction and vectorizer three sentences
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
representaciones-vectoriales/extraccion-caracteristicas-vectorizacion.py
representaciones-vectoriales/extraccion-caracteristicas-vectorizacion.py
View file @
7d751ec
...
...
@@ -84,6 +84,6 @@ if __name__ == "__main__":
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
(
str
(
vectorizer
.
get_feature_names
()))
oFile
.
write
(
str
(
matrix
))
oFile
.
write
(
str
(
matrix
.
toarray
()
))
print
(
"Feature extraction and vectorizer in:
%
fs"
%
(
time
()
-
t0
))
...
...
Please
register
or
login
to post a comment