mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
099d90b700
commit
523806d6db
@ -20,7 +20,7 @@ if __name__ == '__main__':
|
|||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('-o', '--output', help='filename to write the output to', default='combined-freqs.csv')
|
parser.add_argument('-o', '--output', help='filename to write the output to', default='combined-freqs.csv')
|
||||||
parser.add_argument('-c', '--cutoff', type=int, help='stop after seeing a count below this', default=2)
|
parser.add_argument('-c', '--cutoff', type=int, help='stop after seeing a count below this', default=2)
|
||||||
parser.add_argument('-l', '--language', 'language code for which language the words are in', default=None)
|
parser.add_argument('-l', '--language', help='language code for which language the words are in', default=None)
|
||||||
parser.add_argument('inputs', help='names of input files to merge', nargs='+')
|
parser.add_argument('inputs', help='names of input files to merge', nargs='+')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
merge_lists(args.inputs, args.output, args.cutoff, args.language)
|
merge_lists(args.inputs, args.output, args.cutoff, args.language)
|
||||||
|
Loading…
Reference in New Issue
Block a user