@@ -0,0 +1,695 @@
+'''%0ACreated on Jan, 2017%0A%0A@author: hugo%0A%0A'''%0Aimport argparse%0A%0Afrom autoencoder.datasets.movie_review_data import construct_train_test_corpus%0A%0A%0Adef main():%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument('-i', '--input', type=str, required=True, help='path to the input corpus file')%0A    parser.add_argument('-o', '--output', type=str, default='./', help='path to the output dir')%0A    parser.add_argument('-ts', '--test_split', type=float, required=True, help='fraction of the dataset to be used as test data')%0A    args = parser.parse_args()%0A%0A    construct_train_test_corpus(args.input, args.test_split, args.output, threshold=10, topn=2000)%0A%0Aif __name__ == '__main__':%0A    main()%0A

add movie review data support