Carlos-Francisco Méndez-Cruz

Feature extraction and vectorizer three sentences

...@@ -83,7 +83,7 @@ if __name__ == "__main__": ...@@ -83,7 +83,7 @@ if __name__ == "__main__":
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: {}".format(args.vectorizer))
86 - oFile.write(vectorizer.get_feature_names()) 86 + oFile.write(str(vectorizer.get_feature_names()))
87 - oFile.write(matrix) 87 + oFile.write(str(matrix))
88 88
89 print("Feature extraction and vectorizer in: %fs" % (time() - t0)) 89 print("Feature extraction and vectorizer in: %fs" % (time() - t0))
......