reordered command line args

This commit is contained in:
Joshua Chin 2015-07-22 10:04:14 -04:00
parent be29243cec
commit 6453d864c4
2 changed files with 3 additions and 3 deletions

View File

@ -68,13 +68,13 @@ rule convert_google_syntactic_ngrams
command = zcat $in | cut -f 1,3 | grep -v '[,"]' | sed -rn 's/(.*)\s(...+)/\1,\2/p' > $out
rule count
command = python -m wordfreq_builder.cli.count_tokens $in $out $lang
command = python -m wordfreq_builder.cli.count_tokens $in $out
rule merge
command = python -m wordfreq_builder.cli.combine_lists -o $out $in
rule freqs2cB
command = python -m wordfreq_builder.cli.freqs_to_cB $in $lang $out
command = python -m wordfreq_builder.cli.freqs_to_cB $lang $in $out
rule cat
command = cat $in > $out

View File

@ -4,8 +4,8 @@ import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('filename_in', help='name of input file containing tokens')
parser.add_argument('language', help='language of the input file')
parser.add_argument('filename_in', help='name of input file containing tokens')
parser.add_argument('filename_out', help='name of output file')
args = parser.parse_args()
freqs_to_cBpack(args.filename_in, args.filename_out, lang=args.language)