mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
reordered command line args
This commit is contained in:
parent
be29243cec
commit
6453d864c4
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user