Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -82,8 +82,9 @@ if __name__ == "__main__": | ... | @@ -82,8 +82,9 @@ if __name__ == "__main__": |
82 | print(' matrix.shape: ', matrix.shape) | 82 | print(' matrix.shape: ', matrix.shape) |
83 | 83 | ||
84 | with open(os.path.join(args.outputPath, "report-vectorizer.{}.txt".format(args.vectorizer)), encoding="utf-8", mode="w") as oFile: | 84 | with open(os.path.join(args.outputPath, "report-vectorizer.{}.txt".format(args.vectorizer)), encoding="utf-8", mode="w") as oFile: |
85 | - oFile.write("Vectorizer: {}".format(args.vectorizer)) | 85 | + oFile.write("Vectorizer: {}\n".format(args.vectorizer)) |
86 | oFile.write(str(vectorizer.get_feature_names())) | 86 | oFile.write(str(vectorizer.get_feature_names())) |
87 | + oFile.write("\n") | ||
87 | oFile.write(str(matrix.toarray())) | 88 | oFile.write(str(matrix.toarray())) |
88 | 89 | ||
89 | print("Feature extraction and vectorizer in: %fs" % (time() - t0)) | 90 | print("Feature extraction and vectorizer in: %fs" % (time() - t0)) | ... | ... |
-
Please register or login to post a comment