Created
April 26, 2017 13:11
-
-
Save hadyelsahar/8f3f1872510ebcc46abefb06b14d150e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from IPython.core.debugger import Tracer; | |
from sklearn.preprocessing import normalize | |
import numpy as np | |
import pandas as pd | |
debug_here = Tracer() | |
import os | |
parser = argparse.ArgumentParser(description='filter extracted attributes') | |
parser.add_argument('-i', '--input', help='input file name', required=True) | |
parser.add_argument('-o', '--out', help='input file name', required=True) | |
args = parser.parse_args() | |
with open(args.input) as f | |
for line in f: | |
# do your code here | |
# line is a triple line | |
print "Saving output file:" | |
fout = open(args.out,'w') | |
fout.write() | |
fout.close() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment