Carlos-Francisco Méndez-Cruz

Feature extraction and vectorizer three sentences

......@@ -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))
......